mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-01-22 10:35:38 +00:00
[no-relnote] Fix archive-packages script
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
1330467652
commit
784917a0d9
@ -39,12 +39,15 @@ ARTIFACTORY_REPO=$1
|
|||||||
|
|
||||||
if [[ $# -eq 2 ]]; then
|
if [[ $# -eq 2 ]]; then
|
||||||
REFERENCE=$2
|
REFERENCE=$2
|
||||||
SHA=$(git rev-parse --short=8 ${REFERENCE})
|
|
||||||
elif [[ -z ${PACKAGE_IMAGE_TAG} ]]; then
|
elif [[ -z ${PACKAGE_IMAGE_TAG} ]]; then
|
||||||
echo "Either PACKAGE_IMAGE_TAG or REFERENCE must be specified"
|
echo "Either PACKAGE_IMAGE_TAG or REFERENCE must be specified"
|
||||||
assert_usage "$@"
|
assert_usage "$@"
|
||||||
|
else
|
||||||
|
REFERENCE="HEAD"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
SHA=$(git rev-parse --short=8 ${REFERENCE})
|
||||||
|
|
||||||
: ${CURL:=curl}
|
: ${CURL:=curl}
|
||||||
|
|
||||||
: ${PACKAGE_IMAGE_NAME="registry.gitlab.com/nvidia/container-toolkit/container-toolkit/staging/container-toolkit"}
|
: ${PACKAGE_IMAGE_NAME="registry.gitlab.com/nvidia/container-toolkit/container-toolkit/staging/container-toolkit"}
|
||||||
|
Loading…
Reference in New Issue
Block a user