Skip to content

Commit 481bdc2

Browse files
committed
workout
1 parent 33ca240 commit 481bdc2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ jobs:
6161
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
6262
with:
6363
context: .
64-
platforms: linux/amd64,linux/arm64
64+
platforms: linux/amd64,linux/arm64,darwin/amd64,darwin/arm64,windows/amd64,windows/arm64
6565
push: true
6666
tags: ${{ steps.meta.outputs.tags }}
6767
labels: ${{ steps.meta.outputs.labels }}
68+
secrets: |
69+
"version=${{ github.ref_name }}"
6870
6971
- name: Generate artifact attestation
7072
uses: actions/attest-build-provenance@v3

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ COPY . /build
33
WORKDIR /build
44

55
RUN go mod download && \
6-
CGO_ENABLED=0 GO111MODULE=on GOOS=linux go build -ldflags="-X 'main.appName=NetAssert' -X 'main.version=2.0.0-dev'" -v -o /netassertv2 cmd/netassert/cli/*.go && \
6+
CGO_ENABLED=0 GO111MODULE=on go build -ldflags="-X 'main.appName=NetAssert' -X 'main.version=$version'" -v -o /netassertv2 cmd/netassert/cli/*.go && \
77
ls -ltr /netassertv2
88

99
FROM gcr.io/distroless/base:nonroot

0 commit comments

Comments
 (0)