diff --git a/build/container/Dockerfile.packaging b/build/container/Dockerfile.packaging index f8975ded..1613c5b8 100644 --- a/build/container/Dockerfile.packaging +++ b/build/container/Dockerfile.packaging @@ -29,6 +29,7 @@ ARG PACKAGE_DIST ARG PACKAGE_VERSION ARG GIT_BRANCH ARG GIT_COMMIT +ARG GIT_COMMIT_SHORT ARG SOURCE_DATE_EPOCH ARG VERSION diff --git a/versions.mk b/versions.mk index 146fcad1..9b1164d3 100644 --- a/versions.mk +++ b/versions.mk @@ -34,5 +34,6 @@ CUDA_VERSION := 12.0.1 GOLANG_VERSION := 1.18.8 GIT_COMMIT ?= $(shell git describe --match="" --dirty --long --always --abbrev=40 2> /dev/null || echo "") +GIT_COMMIT_SHORT ?= $(shell git git rev-parse --short HEAD 2> /dev/null || echo "") GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "${GIT_COMMIT}") SOURCE_DATE_EPOCH ?= $(shell git log -1 --format=%ct 2> /dev/null || echo "")