Skip to content

Introduce new environment variables for the http health endpoints (#144) #13

Introduce new environment variables for the http health endpoints (#144)

Introduce new environment variables for the http health endpoints (#144) #13

name: Nv-Ingest Nightly Container Publish
# 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
# Build the Docker image using the Dockerfile
- name: Build Docker image
run: |
docker build --target runtime -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 }}