We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30c1aab commit d21bdb3Copy full SHA for d21bdb3
scripts/archive-packages.sh
@@ -39,12 +39,15 @@ ARTIFACTORY_REPO=$1
39
40
if [[ $# -eq 2 ]]; then
41
REFERENCE=$2
42
- SHA=$(git rev-parse --short=8 ${REFERENCE})
43
elif [[ -z ${PACKAGE_IMAGE_TAG} ]]; then
44
echo "Either PACKAGE_IMAGE_TAG or REFERENCE must be specified"
45
assert_usage "$@"
+else
46
+ REFERENCE="HEAD"
47
fi
48
49
+SHA=$(git rev-parse --short=8 ${REFERENCE})
50
+
51
: ${CURL:=curl}
52
53
: ${PACKAGE_IMAGE_NAME="registry.gitlab.com/nvidia/container-toolkit/container-toolkit/staging/container-toolkit"}
0 commit comments