Only run if changed (#444)
This commit is contained in:
parent
0e5801e9d6
commit
36f39043de
20
.github/workflows/docker.yml
vendored
20
.github/workflows/docker.yml
vendored
@ -4,9 +4,9 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: master
|
branches: master
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- docker-compose.yml
|
- docker-compose.yml
|
||||||
- services
|
- services
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user