Skip to content

Commit 6394e9e

Browse files
authored
Merge pull request #1033 from JunAr7112/migrate_ngc_changes
Updated .release:staging to stage images in nvstaging
2 parents a2e2a44 + 6605bfb commit 6394e9e

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.common-ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,10 @@ test-packaging:
178178
OUT_IMAGE_VERSION: "${CI_COMMIT_SHORT_SHA}"
179179
before_script:
180180
- !reference [.regctl-setup, before_script]
181-
182-
# We ensure that the OUT_IMAGE_VERSION is set
181+
# We ensure that the components of the output image are set:
182+
- 'echo Image Name: ${OUT_IMAGE_NAME} ; [[ -n "${OUT_IMAGE_NAME}" ]] || exit 1'
183183
- 'echo Version: ${OUT_IMAGE_VERSION} ; [[ -n "${OUT_IMAGE_VERSION}" ]] || exit 1'
184184

185-
# In the case where we are deploying a different version to the CI_COMMIT_SHA, we
186-
# need to tag the image.
187-
# Note: a leading 'v' is stripped from the version if present
188185
- apk add --no-cache make bash
189186
script:
190187
# Log in to the "output" registry, tag the image and push the image
@@ -204,10 +201,10 @@ test-packaging:
204201
extends:
205202
- .release
206203
variables:
207-
OUT_REGISTRY_USER: "${CI_REGISTRY_USER}"
208-
OUT_REGISTRY_TOKEN: "${CI_REGISTRY_PASSWORD}"
209-
OUT_REGISTRY: "${CI_REGISTRY}"
210-
OUT_IMAGE_NAME: "${CI_REGISTRY_IMAGE}/staging/container-toolkit"
204+
OUT_REGISTRY_USER: "${NGC_REGISTRY_USER}"
205+
OUT_REGISTRY_TOKEN: "${NGC_REGISTRY_TOKEN}"
206+
OUT_REGISTRY: "${NGC_REGISTRY}"
207+
OUT_IMAGE_NAME: "${NGC_REGISTRY_STAGING_IMAGE_NAME}"
211208

212209
# Define an external release step that pushes an image to an external repository.
213210
# This includes a devlopment image off main.

0 commit comments

Comments
 (0)