Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Move logic for setting NGC_* variables
Browse files Browse the repository at this point in the history
Due to this bug, they can't be expanded from Project level envvars in
the `variables` section:
https://gitlab.com/gitlab-org/gitlab-runner/-/issues/1809

Signed-off-by: Kevin Klues <[email protected]>
  • Loading branch information
klueska committed Jan 12, 2021
1 parent a91465d commit 2385116
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .nvidia-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ default:
include:
- local: '.common-ci.yml'

variables:
NGC_REPO: "${NGC_REGISTRY}/nvidia"
NGC_PROD_IMAGE: "${NGC_REPO}/${DOCKER_IMAGE_NAME}"

scan:
extends: .scan
script:
Expand All @@ -29,6 +25,9 @@ release:ngc:
image: docker:dind
services:
- docker:dind
before_script:
- export NGC_REPO="${NGC_REGISTRY}/nvidia"
- export NGC_PROD_IMAGE="${NGC_REPO}/${DOCKER_IMAGE_NAME}"
script:
- source version
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
Expand Down

0 comments on commit 2385116

Please sign in to comment.