Skip to content

Commit

Permalink
Perform docker login after docker build step in CI action (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdye64 authored Oct 1, 2024
1 parent 444a8cf commit 4c52989
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-nightly-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build NV-Ingest Runtime Image
name: Nv-Ingest Nightly Container Publish

# Trigger for pull requests and pushing to main
on:
Expand All @@ -24,15 +24,15 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# Login to NGC
- name: Log in to NGC Registry
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login nvcr.io --username "\$oauthtoken" --password-stdin

# Build the Docker image using the Dockerfile
- name: Build Docker image
run: |
docker build -t ${{ secrets.DOCKER_REGISTRY }}/nv-ingest:${{ env.CURRENT_DATE }} .
# Login to NGC
- name: Log in to NGC Registry
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login nvcr.io --username "\$oauthtoken" --password-stdin

# Push the container to NGC
- name: Upload nv-ingest container
run: docker push ${{ secrets.DOCKER_REGISTRY }}/nv-ingest:${{ env.CURRENT_DATE }}

0 comments on commit 4c52989

Please sign in to comment.