Skip to content

Commit

Permalink
Upload nv-ingest container (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdye64 authored Oct 1, 2024
1 parent 9703541 commit 19d3a0f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- opened
- synchronize
- reopened
push:
branches:
- main

jobs:
build:
Expand All @@ -16,6 +19,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Get current date (yyyy.mm.dd)
run: echo "CURRENT_DATE=$(date +'%Y.%m.%d')" >> $GITHUB_ENV

# Set up Docker Buildx, useful for building multi-platform images
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/docker-nightly-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build NV-Ingest Runtime Image

# Trigger for pull requests and pushing to main
on:
schedule:
# Runs every day at 11:30PM (UTC)
- cron: "30 23 * * *"
push:
branches:
- main

jobs:
build:
runs-on: linux-large-disk

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Get current date (yyyy.mm.dd)
run: echo "CURRENT_DATE=$(date +'%Y.%m.%d')" >> $GITHUB_ENV

# Set up Docker Buildx, useful for building multi-platform images
- 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 "${{ secrets.DOCKER_USERNAME }}" --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 }} .
# 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 19d3a0f

Please sign in to comment.