File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -252,13 +252,17 @@ push-images-to-staging:
252252 PROJECT_NAME : " nvidia-container-toolkit"
253253 before_script :
254254 - |
255- if [ -z "$NGC_PUBLISHING_PROJECT_PATH" ]; then
255+ if [ -n "${OVERRIDE_PUBLISHING_PROJECT_PATH}" ]; then
256+ NGC_PUBLISHING_PROJECT_PATH="${OVERRIDE_PUBLISHING_PROJECT_PATH}"
257+ fi
258+
259+ if [ -z "${NGC_PUBLISHING_PROJECT_PATH}" ]; then
256260 echo "NGC_PUBLISHING_PROJECT_PATH not set"
257261 exit 1
258- else
259- echo "publishing to ${NGC_PUBLISHING_PROJECT_PATH}"
260262 fi
261263
264+ echo "publishing to ${NGC_PUBLISHING_PROJECT_PATH}"
265+
262266 rm -f ${VERSION_FILE}
263267 echo "${IN_IMAGE_TAG} ${OUT_IMAGE_TAG}" >> ${VERSION_FILE}
264268 echo "${IN_IMAGE_TAG}-packaging ${OUT_IMAGE_TAG}-packaging" >> ${VERSION_FILE}
@@ -284,7 +288,7 @@ publish-images-dummy:
284288 extends :
285289 - .publish-images
286290 variables :
287- NGC_PUBLISHING_PROJECT_PATH : dl/container-dev/ngc-automation
291+ OVERRIDE_PUBLISHING_PROJECT_PATH : " dl/container-dev/ngc-automation"
288292 OUT_IMAGE_TAG : " publish-${CI_COMMIT_SHORT_SHA}"
289293 rules :
290294 - if : $CI_COMMIT_TAG == null || $CI_COMMIT_TAG == ""
You can’t perform that action at this time.
0 commit comments