Skip to content

Commit

Permalink
Fix docker build version variable
Browse files Browse the repository at this point in the history
Signed-off-by: m.nabokikh <[email protected]>
  • Loading branch information
nabokihms committed Jun 6, 2024
1 parent 8ed2e7c commit 14b3dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN go get -d -v ./...

ARG TAG
RUN CGO_ENABLED=0 go build -a \
-ldflags '-s -w -extldflags "-static" -X "github.com/flant/k8s-image-availability-exporter/pkg/version.Version=$TAG"' \
-ldflags "-s -w -extldflags '-static' -X github.com/flant/k8s-image-availability-exporter/pkg/version.Version=${TAG}" \
-o /go/bin/k8s-image-availability-exporter main.go

FROM gcr.io/distroless/static-debian11
Expand Down

0 comments on commit 14b3dee

Please sign in to comment.