From 784917a0d911fe572f35956e0d874d0db1002c7d Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Wed, 4 Dec 2024 12:48:18 +0100 Subject: [PATCH] [no-relnote] Fix archive-packages script Signed-off-by: Evan Lezar --- scripts/archive-packages.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/archive-packages.sh b/scripts/archive-packages.sh index 688513d80..8683c248c 100755 --- a/scripts/archive-packages.sh +++ b/scripts/archive-packages.sh @@ -39,12 +39,15 @@ ARTIFACTORY_REPO=$1 if [[ $# -eq 2 ]]; then REFERENCE=$2 - SHA=$(git rev-parse --short=8 ${REFERENCE}) elif [[ -z ${PACKAGE_IMAGE_TAG} ]]; then echo "Either PACKAGE_IMAGE_TAG or REFERENCE must be specified" assert_usage "$@" +else + REFERENCE="HEAD" fi +SHA=$(git rev-parse --short=8 ${REFERENCE}) + : ${CURL:=curl} : ${PACKAGE_IMAGE_NAME="registry.gitlab.com/nvidia/container-toolkit/container-toolkit/staging/container-toolkit"}