Skip to content

Commit

Permalink
[no-relnote] Fix archive-packages script
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <[email protected]>
  • Loading branch information
elezar committed Dec 4, 2024
1 parent 30c1aab commit d21bdb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/archive-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down

0 comments on commit d21bdb3

Please sign in to comment.