Skip to content

Commit 45eb1b6

Browse files
ngc login
1 parent 6ee0485 commit 45eb1b6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/premerge.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ jobs:
66
name: Premerge
77
runs-on: [self-hosted, gpu] # GPU jobs will run on AWS
88
steps:
9+
- name: NGC Login
10+
shell: sh
11+
run: |
12+
# Only attempt NGC login if API key is available
13+
if [ -n "${{ env.NGC_API_KEY }}" ]; then
14+
echo "Logging into NGC registry..."
15+
docker login -u \$oauthtoken -p ${{ env.NGC_API_KEY }} nvcr.io
16+
echo "✅ Successfully logged into NGC registry"
17+
else
18+
echo "⚠️ NGC_API_KEY not available - skipping NGC login"
19+
echo "This is normal for PRs from forks or when secrets are not configured"
20+
fi
921
- name: Checkout Code
1022
uses: actions/checkout@v4
1123
with:

0 commit comments

Comments
 (0)