mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 00:08:11 +00:00
Fix blank changelist in kitmaker properties
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
f36c514f1f
commit
863b569a61
@ -95,6 +95,7 @@ $(BUILD_TARGETS): build-%: $(ARTIFACTS_ROOT)
|
|||||||
--build-arg PACKAGE_VERSION="$(PACKAGE_VERSION)" \
|
--build-arg PACKAGE_VERSION="$(PACKAGE_VERSION)" \
|
||||||
--build-arg VERSION="$(VERSION)" \
|
--build-arg VERSION="$(VERSION)" \
|
||||||
--build-arg GIT_COMMIT="$(GIT_COMMIT)" \
|
--build-arg GIT_COMMIT="$(GIT_COMMIT)" \
|
||||||
|
--build-arg GIT_COMMIT_SHORT="$(GIT_COMMIT_SHORT)" \
|
||||||
--build-arg GIT_BRANCH="$(GIT_BRANCH)" \
|
--build-arg GIT_BRANCH="$(GIT_BRANCH)" \
|
||||||
--build-arg SOURCE_DATE_EPOCH="$(SOURCE_DATE_EPOCH)" \
|
--build-arg SOURCE_DATE_EPOCH="$(SOURCE_DATE_EPOCH)" \
|
||||||
--build-arg CVE_UPDATES="$(CVE_UPDATES)" \
|
--build-arg CVE_UPDATES="$(CVE_UPDATES)" \
|
||||||
|
@ -77,6 +77,7 @@ function extract_info() {
|
|||||||
IMAGE_EPOCH=$(extract_info "IMAGE_EPOCH")
|
IMAGE_EPOCH=$(extract_info "IMAGE_EPOCH")
|
||||||
# Note we use the main branch for the kitmaker archive.
|
# Note we use the main branch for the kitmaker archive.
|
||||||
GIT_BRANCH=main
|
GIT_BRANCH=main
|
||||||
|
GIT_COMMIT=$(extract_info "GIT_COMMIT")
|
||||||
GIT_COMMIT_SHORT=$(extract_info "GIT_COMMIT_SHORT")
|
GIT_COMMIT_SHORT=$(extract_info "GIT_COMMIT_SHORT")
|
||||||
VERSION=$(extract_info "PACKAGE_VERSION")
|
VERSION=$(extract_info "PACKAGE_VERSION")
|
||||||
|
|
||||||
@ -169,6 +170,7 @@ function upload_archive() {
|
|||||||
# Package properties:
|
# Package properties:
|
||||||
props+=("package.epoch=${IMAGE_EPOCH}")
|
props+=("package.epoch=${IMAGE_EPOCH}")
|
||||||
props+=("package.version=${VERSION}")
|
props+=("package.version=${VERSION}")
|
||||||
|
props+=("package.commit=${GIT_COMMIT}")
|
||||||
optionally_add_property "package.builds" "${package_builds}"
|
optionally_add_property "package.builds" "${package_builds}"
|
||||||
|
|
||||||
for var in "CI_PROJECT_ID" "CI_PIPELINE_ID" "CI_JOB_ID" "CI_JOB_URL" "CI_PROJECT_PATH"; do
|
for var in "CI_PROJECT_ID" "CI_PIPELINE_ID" "CI_JOB_ID" "CI_JOB_URL" "CI_PROJECT_PATH"; do
|
||||||
|
@ -34,6 +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_COMMIT_SHORT ?= $(shell 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