Skip to content

Commit ae2175e

Browse files
committed
fix
1 parent 6f3d977 commit ae2175e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ jobs:
6565
push: true
6666
tags: ${{ steps.meta.outputs.tags }}
6767
labels: ${{ steps.meta.outputs.labels }}
68-
secrets: |
69-
"version=${{ github.ref_name }}"
68+
build-args: |
69+
VERSION=${{ github.ref_name }}
7070
7171
- name: Generate artifact attestation
7272
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 go build -ldflags="-X 'main.appName=NetAssert' -X 'main.version=$version'" -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)