From 14b3dee1c535b4a5ad20991ec1ddef1a1280b909 Mon Sep 17 00:00:00 2001 From: "m.nabokikh" Date: Thu, 6 Jun 2024 13:56:19 +0400 Subject: [PATCH] Fix docker build version variable Signed-off-by: m.nabokikh --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c19d55c..34fd038 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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