Skip to content

Commit

Permalink
Updates L0 to pull down newer container images
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavm-nvidia committed Sep 11, 2024
1 parent 2d143c2 commit 85a7197
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/tripy-l0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths: ['tripy/**']

env:
REGISTRY: ghcr.io
DEFAULT_IMAGE: ghcr.io/nvidia/tensorrt-incubator/tripy:latest
NEW_TEST_IMAGE: test-image:latest

Expand All @@ -23,23 +24,36 @@ jobs:
id: filter
with:
filters: |
new_container:
local_container:
- 'tripy/Dockerfile'
- 'tripy/pyproject.toml'
- if: steps.filter.outputs.new_container == 'true'
- if: steps.filter.outputs.local_container == 'true'
run: echo "l0_image=${{ env.NEW_TEST_IMAGE }}" >> "$GITHUB_ENV"
- if: steps.filter.outputs.new_container != 'true'
- if: steps.filter.outputs.local_container != 'true'
run: echo "l0_image=${{ env.DEFAULT_IMAGE }}" >> "$GITHUB_ENV"

# Login against a Docker registry
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: build-new-container
if: steps.filter.outputs.new_container == 'true'
if: steps.filter.outputs.local_container == 'true'
uses: docker/build-push-action@v6
with:
context: tripy/
tags: ${{ env.NEW_TEST_IMAGE }}
push: false

- name: pull-latest-container
if: steps.filter.outputs.local_container != 'true'
run: docker pull ${{ env.l0_image }}

- name: build-docs
uses: addnab/docker-run-action@v3
with:
Expand Down

0 comments on commit 85a7197

Please sign in to comment.