Skip to content

Commit

Permalink
Update publishing_stable.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Bettina Heim <[email protected]>
  • Loading branch information
bettinaheim authored Nov 14, 2024
1 parent 5ee8642 commit 73e36a2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publishing_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ on:
type: string
default: nvcr.io/nvidia/quantum
required: false
description: The registry prefix for the image to push.
description: The registry prefix for the image to push.
ngc_api_key:
type: string
required: false
description: The API key to use when authenticating with NGC.

name: Push stable release

Expand Down Expand Up @@ -52,7 +56,7 @@ jobs:
with:
registry: 'nvcr.io'
username: '$oauthtoken'
password: ${{ secrets.NGC_CREDENTIALS }}
password: ${{ inputs.ngc_api_key || secrets.NGC_CREDENTIALS }}

- name: Prepare image
id: setup
Expand Down Expand Up @@ -133,7 +137,7 @@ jobs:
if: steps.setup.outputs.ngc_org != ''
env:
TAGS: ${{ steps.metadata.outputs.tags }}
NGC_CLI_API_KEY: ${{ secrets.NGC_CREDENTIALS }}
NGC_CLI_API_KEY: ${{ inputs.ngc_api_key || secrets.NGC_CREDENTIALS }}
NGC_CLI_ORG: ${{ steps.setup.outputs.ngc_org }}
NGC_CLI_TEAM: ${{ steps.setup.outputs.ngc_team }}
run: |
Expand Down

0 comments on commit 73e36a2

Please sign in to comment.