Skip to content

Commit

Permalink
Use local build
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Sep 14, 2024
1 parent 16df643 commit 5cc5cca
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/nvidia-l4t-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,15 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
paths:
- 'nvidia/l4t-base/**'
workflow_dispatch:
jobs:
# Job to run change detection
changes:
runs-on: [self-hosted]
outputs:
images: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v4

- uses: dorny/paths-filter@v3
id: filter
with:
base: ${{ github.ref }}
filters: |
nvidia/l4t-base: 'nvidia/l4t-base/**'
build:
needs: changes
strategy:
matrix:
image: ${{ fromJSON(needs.changes.outputs.images) }}
if: ${{ needs.changes.outputs.images != '[]' && needs.changes.outputs.images != '' }}
runs-on: [self-hosted]
defaults:
run:
working-directory: ${{ matrix.image }}
working-directory: nvidia/l4t-base
steps:
- uses: actions/checkout@v4

Expand All @@ -49,30 +32,30 @@ jobs:
- name: Build and push
uses: docker/bake-action@v4
with:
workdir: ${{ matrix.image }}
workdir: nvidia/l4t-base
push: ${{ github.event_name != 'pull_request' }}

- name: Get the image name
if: ${{ github.event_name != 'pull_request' }}
id: image_name
shell: bash
working-directory: ${{ matrix.image }}
working-directory: nvidia/l4t-base
run: |
echo "image_name=$($(git rev-parse --show-toplevel)/bin/image-name.sh)" >> $GITHUB_ENV
- name: Get the image description
if: ${{ github.event_name != 'pull_request' }}
id: image_description
shell: bash
working-directory: ${{ matrix.image }}
working-directory: nvidia/l4t-base
run: |
echo "image_description=$($(git rev-parse --show-toplevel)/bin/image-description.sh)" >> $GITHUB_ENV
- name: Get the image readme filepath
if: ${{ github.event_name != 'pull_request' }}
id: image_readme_filepath
shell: bash
working-directory: ${{ matrix.image }}
working-directory: nvidia/l4t-base
run: |
echo "image_readme_filepath=$($(git rev-parse --show-toplevel)/bin/image-readme.sh)" >> $GITHUB_ENV
Expand Down

0 comments on commit 5cc5cca

Please sign in to comment.