From 7b3cb5362a0ff96020372dfc223147457d8a0ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= <66256922+daniel-weisse@users.noreply.github.com> Date: Fri, 18 Nov 2022 16:43:44 +0100 Subject: [PATCH] Fix disk-mapper version injection (#592) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- Dockerfile.build | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile.build b/Dockerfile.build index 0b11ce915..388e2af28 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -30,6 +30,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build go build -o bootstrapper -ta FROM build AS build-disk-mapper WORKDIR /constellation/disk-mapper/ +ARG PROJECT_VERSION RUN --mount=type=cache,target=/root/.cache/go-build go build -o disk-mapper -ldflags "-s -w -buildid='' -X github.com/edgelesssys/constellation/v2/internal/constants.VersionInfo=${PROJECT_VERSION}" ./cmd/ FROM scratch AS bootstrapper