Skip to content

Commit 9c2a129

Browse files
authored
Merge pull request #84 from JunAr7112/migrate_ngc_changes
Updated .release:staging to stage images in nvstaging
2 parents 774bda7 + 5a1dde1 commit 9c2a129

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.common-ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ stages:
103103
- !reference [.regctl-setup, before_script]
104104
# We ensure that the OUT_IMAGE_VERSION is set
105105
- 'echo Version: ${OUT_IMAGE_VERSION} ; [[ -n "${OUT_IMAGE_VERSION}" ]] || exit 1'
106+
- 'echo Version: ${OUT_IMAGE_NAME} ; [[ -n "${OUT_IMAGE_NAME}" ]] || exit 1'
107+
106108
# In the case where we are deploying a different version to the CI_COMMIT_SHA, we
107109
# need to tag the image.
108110
# Note: a leading 'v' is stripped from the version if present
@@ -124,10 +126,10 @@ stages:
124126
extends:
125127
- .release
126128
variables:
127-
OUT_REGISTRY_USER: "${CI_REGISTRY_USER}"
128-
OUT_REGISTRY_TOKEN: "${CI_REGISTRY_PASSWORD}"
129-
OUT_REGISTRY: "${CI_REGISTRY}"
130-
OUT_IMAGE_NAME: "${CI_REGISTRY_IMAGE}/staging/vgpu-device-manager"
129+
OUT_REGISTRY_USER: "${NGC_REGISTRY_USER}"
130+
OUT_REGISTRY_TOKEN: "${NGC_REGISTRY_TOKEN}"
131+
OUT_REGISTRY: "${NGC_REGISTRY}"
132+
OUT_IMAGE_NAME: "${NGC_REGISTRY_STAGING_IMAGE_NAME}"
131133

132134
# Define an external release step that pushes an image to an external repository.
133135
# This includes a devlopment image off master.

0 commit comments

Comments
 (0)