[no-relnote] Fix archive-packages script

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2024-12-04 12:48:18 +01:00
parent 1330467652
commit 784917a0d9
No known key found for this signature in database

View File

@ -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"}