Skip to content

Commit 4a04db0

Browse files
committed
cicd: changed initial release version #minor
1 parent 4ff43b5 commit 4a04db0

3 files changed

Lines changed: 19 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff 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
@@ -83,6 +83,8 @@ jobs:
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

@@ -99,6 +101,8 @@ jobs:
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

api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:latest AS builder
1+
FROM rust:1.93-slim AS builder
22

33
RUN cargo install cargo-chef sccache --locked
44

management/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
FROM node:latest AS builder
1+
FROM node:25.6-slim AS builder
22

33
WORKDIR /app
44

55
COPY --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

810
COPY --chown=nonroot:nonroot . .
11+
912
RUN npm run build
1013

11-
FROM cgr.dev/chainguard/node:latest
14+
15+
16+
FROM cgr.dev/chainguard/node:latest AS runner
1217

1318
WORKDIR /app
1419

0 commit comments

Comments
 (0)