Skip to content

Commit

Permalink
ci: conditional container build
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpollo committed Mar 5, 2025
1 parent 5a6e1a4 commit 378d5dc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/dev_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,30 @@ on:
- '*'

jobs:
test:
name: Check for Changes
runs-on: [runs-on,"runner=1cpu-linux-x64","image=ubuntu24-full-x64","run-id=${{ github.run_id }}"]
outputs:
changes: ${{ steps.changes.outputs.src }}
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
submodules: false
fetch-depth: 0

- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src:
- 'Tools/setup/ubuntu.sh'
- 'Tools/setup/requirements.txt'
build:
name: Build and Push Container
runs-on: [runs-on,"runner=8cpu-linux-x64","image=ubuntu24-full-x64","run-id=${{ github.run_id }}",spot=false,extras=s3-cache]
needs: test
if: needs.test.outputs.changes == 'true'
steps:
- uses: runs-on/action@v1
- uses: actions/checkout@v4
Expand Down

0 comments on commit 378d5dc

Please sign in to comment.