mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 21:39:10 +00:00
Add GIT_COMMIT_SHORT to packaging image manifest
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
fa28e738c6
commit
e27479e170
@ -29,6 +29,7 @@ ARG PACKAGE_DIST
|
|||||||
ARG PACKAGE_VERSION
|
ARG PACKAGE_VERSION
|
||||||
ARG GIT_BRANCH
|
ARG GIT_BRANCH
|
||||||
ARG GIT_COMMIT
|
ARG GIT_COMMIT
|
||||||
|
ARG GIT_COMMIT_SHORT
|
||||||
ARG SOURCE_DATE_EPOCH
|
ARG SOURCE_DATE_EPOCH
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
|
||||||
|
@ -34,5 +34,6 @@ CUDA_VERSION := 12.0.1
|
|||||||
GOLANG_VERSION := 1.18.8
|
GOLANG_VERSION := 1.18.8
|
||||||
|
|
||||||
GIT_COMMIT ?= $(shell git describe --match="" --dirty --long --always --abbrev=40 2> /dev/null || echo "")
|
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}")
|
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 "")
|
SOURCE_DATE_EPOCH ?= $(shell git log -1 --format=%ct 2> /dev/null || echo "")
|
||||||
|
Loading…
Reference in New Issue
Block a user