mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 13:35:00 +00:00
Correct artifactory upload URL
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
08640a6f64
commit
80f8c2a418
@ -141,7 +141,7 @@ upload_file() {
|
|||||||
# extract the Artifactory hostname
|
# extract the Artifactory hostname
|
||||||
artifactory_host=$(echo "${ARTIFACTORY_URL##https://}" | awk -F'/' '{print $1}')
|
artifactory_host=$(echo "${ARTIFACTORY_URL##https://}" | awk -F'/' '{print $1}')
|
||||||
# get base part of the ARTIFACTORY_URL without hostname
|
# get base part of the ARTIFACTORY_URL without hostname
|
||||||
local image_path="${ARTIFACTORY_URL#https://${artifactory_host}/}/${dist}/${arch}"
|
local image_path="${ARTIFACTORY_URL#https://${artifactory_host}/}/${dist}/${arch}/$(basename ${file})"
|
||||||
|
|
||||||
local PROPS
|
local PROPS
|
||||||
process_props "${dist}" "${arch}"
|
process_props "${dist}" "${arch}"
|
||||||
@ -159,7 +159,7 @@ upload_file() {
|
|||||||
-H "X-JFrog-Art-Api: ${ARTIFACTORY_TOKEN}" \
|
-H "X-JFrog-Art-Api: ${ARTIFACTORY_TOKEN}" \
|
||||||
-H "X-Checksum-Sha1: ${SHA1_SUM}" \
|
-H "X-Checksum-Sha1: ${SHA1_SUM}" \
|
||||||
${file:+-T ${file}} -X PUT \
|
${file:+-T ${file}} -X PUT \
|
||||||
"https://${artifactory_host}/artifactory/${image_path};${PROPS}" ;
|
"https://${artifactory_host}/${image_path};${PROPS}" ;
|
||||||
then
|
then
|
||||||
echo "ERROR: upload file failed: ${file}"
|
echo "ERROR: upload file failed: ${file}"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user