Only run if changed (#444)
This commit is contained in:
14
.github/workflows/docker.yml
vendored
14
.github/workflows/docker.yml
vendored
@ -22,4 +22,18 @@ jobs:
|
|||||||
name: ${{ matrix.profile }}
|
name: ${{ matrix.profile }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: dorny/paths-filter@v2
|
||||||
|
id: changes
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
auto:
|
||||||
|
- 'services/auto/**'
|
||||||
|
sygil:
|
||||||
|
- 'services/sygil/**'
|
||||||
|
invoke:
|
||||||
|
- 'services/invoke/**'
|
||||||
|
comfy:
|
||||||
|
- 'services/comfy/**'
|
||||||
|
|
||||||
- run: docker compose --profile ${{ matrix.profile }} build --progress plain
|
- run: docker compose --profile ${{ matrix.profile }} build --progress plain
|
||||||
|
if: github.ref == 'refs/heads/master' || steps.changes.outputs.${{ matrix.profile }} == 'true'
|
||||||
|
Reference in New Issue
Block a user