File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,16 +47,16 @@ jobs:
4747 needs : release
4848 if : needs.release.outputs.part != 'patch'
4949 runs-on : ${{ matrix.os }}
50+ permissions :
51+ packages : write
52+ contents : read
5053 strategy :
5154 matrix :
5255 include :
5356 - os : ubuntu-latest
5457 arch : amd64
5558 - os : ubuntu-22.04-arm
5659 arch : arm64
57- permissions :
58- packages : write
59- contents : read
6060 steps :
6161 - name : Checkout repository
6262 uses : actions/checkout@v4
8383
8484 - name : Set up Docker Buildx
8585 uses : docker/setup-buildx-action@v3
86+ env :
87+ BUILDX_NO_DEFAULT_ATTESTATIONS : 1
8688 with :
8789 platforms : linux/${{ matrix.arch }}
8890
99101 labels : ${{ steps.meta.outputs.labels }}
100102 cache-from : type=gha
101103 cache-to : type=gha,mode=max
104+ provenance : false
105+ sbom : false
102106
103107 - name : Build and push Management Docker image
104108 uses : docker/build-push-action@v6
@@ -112,4 +116,6 @@ jobs:
112116 ghcr.io/${{ github.repository }}/management:latest
113117 labels : ${{ steps.meta.outputs.labels }}
114118 cache-from : type=gha
115- cache-to : type=gha,mode=max
119+ cache-to : type=gha,mode=max
120+ provenance : false
121+ sbom : false
Original file line number Diff line number Diff line change 1- FROM rust:latest AS builder
1+ FROM rust:1.93-slim AS builder
22
33RUN cargo install cargo-chef sccache --locked
44
Original file line number Diff line number Diff line change 1- FROM node:latest AS builder
1+ FROM node:25.6-slim AS builder
22
33WORKDIR /app
44
55COPY --chown=nonroot:nonroot package.json package-lock.json ./
6- RUN npm ci
6+
7+ RUN --mount=type=cache,target=/root/.npm \
8+ npm ci --prefer-offline
79
810COPY --chown=nonroot:nonroot . .
11+
912RUN npm run build
1013
11- FROM cgr.dev/chainguard/node:latest
14+
15+
16+ FROM cgr.dev/chainguard/node:latest AS runner
1217
1318WORKDIR /app
1419
You can’t perform that action at this time.
0 commit comments