We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d681bb9 commit dd57e72Copy full SHA for dd57e72
1 file changed
.github/workflows/gpu_tests.yml
@@ -58,9 +58,11 @@ jobs:
58
timeout-minutes: ${{ matrix.timeout }}
59
container:
60
image: ${{ matrix.container_image }}
61
+ # NGC creds only for ``nvcr.io/*`` images; ``docker.io/*`` is anonymous-pull.
62
+ # Empty username/password short-circuits the runner's ``docker login`` step.
63
credentials:
- username: $oauthtoken
- password: ${{ secrets.NGC_API_KEY }}
64
+ username: ${{ startsWith(matrix.container_image, 'nvcr.io/') && '$oauthtoken' || '' }}
65
+ password: ${{ startsWith(matrix.container_image, 'nvcr.io/') && secrets.NGC_API_KEY || '' }}
66
env:
67
GIT_DEPTH: 1000 # For correct version
68
PIP_CONSTRAINT: "" # Disable pip constraint for upgrading packages
0 commit comments