@@ -178,13 +178,10 @@ test-packaging:
178
178
OUT_IMAGE_VERSION : " ${CI_COMMIT_SHORT_SHA}"
179
179
before_script :
180
180
- !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 '
183
183
- ' echo Version: ${OUT_IMAGE_VERSION} ; [[ -n "${OUT_IMAGE_VERSION}" ]] || exit 1'
184
184
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
188
185
- apk add --no-cache make bash
189
186
script :
190
187
# Log in to the "output" registry, tag the image and push the image
@@ -204,10 +201,10 @@ test-packaging:
204
201
extends :
205
202
- .release
206
203
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} "
211
208
212
209
# Define an external release step that pushes an image to an external repository.
213
210
# This includes a devlopment image off main.
0 commit comments