From 95a69e70f98e18efb62236cc4b5b9f5969d4d83b Mon Sep 17 00:00:00 2001 From: Tomasz Smelcerz Date: Tue, 7 Nov 2023 19:03:03 +0100 Subject: [PATCH] Debug --- runtime-watcher/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime-watcher/Dockerfile b/runtime-watcher/Dockerfile index b4ba8c44..134c18f2 100644 --- a/runtime-watcher/Dockerfile +++ b/runtime-watcher/Dockerfile @@ -2,7 +2,7 @@ FROM golang:1.21-alpine as builder ARG BUILD_VERSION=from-Dockerfile RUN printenv | sed 's/=.*//g' -RUN echo TAG_default_tag=${TAG_default_tag} +RUN echo TAG_BUILD_VERSION=${TAG_BUILD_VERSION} WORKDIR /app @@ -14,7 +14,7 @@ RUN go mod download COPY main.go main.go COPY internal/ internal/ -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-X 'main.buildVersion=${BUILD_VERSION}'" -a -o webhook main.go +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-X 'main.buildVersion=${TAG_BUILD_VERSION}'" -a -o webhook main.go FROM gcr.io/distroless/static:nonroot WORKDIR /