From 5bd45551b40abfc5fec37c7510ced32eb19996ad Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Fri, 22 Dec 2023 09:36:48 +0000 Subject: [PATCH] fix: update Dockerfile version output Signed-off-by: Milos Gajdos --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7c88b1ce7..24ed3df99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ FROM base AS version ARG PKG=github.com/distribution/distribution/v3 RUN --mount=target=. \ VERSION=$(git describe --match 'v[0-9]*' --dirty='.m' --always --tags) REVISION=$(git rev-parse HEAD)$(if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi); \ - echo "-X ${PKG}/version.Version=${VERSION#v} -X ${PKG}/version.Revision=${REVISION} -X ${PKG}/version.Package=${PKG}" | tee /tmp/.ldflags; \ + echo "-X ${PKG}/version.version=${VERSION#v} -X ${PKG}/version.revision=${REVISION} -X ${PKG}/version.mainpkg=${PKG}" | tee /tmp/.ldflags; \ echo -n "${VERSION}" | tee /tmp/.version; FROM base AS build