File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ COPY . /build
33WORKDIR /build
44
55RUN 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
99FROM gcr.io/distroless/base:nonroot
You can’t perform that action at this time.
0 commit comments