Skip to content

Commit 24ff1cf

Browse files
committed
ci: clarify docker image build triggers
Split collector and frontend path filters so image rebuilds track collector auth, schema, and shared runtime config changes more explicitly.
1 parent ba6a8b3 commit 24ff1cf

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/docker-image.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,22 @@ jobs:
3939
uses: dorny/paths-filter@v3
4040
with:
4141
filters: |
42-
collector:
42+
collector_image:
4343
- 'collector/**'
44-
frontend:
44+
- 'init-db/**'
45+
- '.env.example'
46+
- 'docker-compose.yml'
47+
- 'docker-compose.override.yml'
48+
- '.github/workflows/docker-image.yml'
49+
frontend_image:
4550
- 'frontend/**'
46-
shared:
51+
- '.env.example'
4752
- 'docker-compose.yml'
53+
- 'docker-compose.override.yml'
4854
- '.github/workflows/docker-image.yml'
4955
5056
- name: Extract metadata for Collector
51-
if: steps.changes.outputs.collector == 'true' || steps.changes.outputs.shared == 'true'
57+
if: steps.changes.outputs.collector_image == 'true'
5258
id: meta-collector
5359
uses: docker/metadata-action@v5
5460
with:
@@ -58,7 +64,7 @@ jobs:
5864
type=sha,prefix=
5965
6066
- name: Extract metadata for Frontend
61-
if: steps.changes.outputs.frontend == 'true' || steps.changes.outputs.shared == 'true'
67+
if: steps.changes.outputs.frontend_image == 'true'
6268
id: meta-frontend
6369
uses: docker/metadata-action@v5
6470
with:
@@ -68,7 +74,7 @@ jobs:
6874
type=sha,prefix=
6975
7076
- name: Build and push Collector image
71-
if: steps.changes.outputs.collector == 'true' || steps.changes.outputs.shared == 'true'
77+
if: steps.changes.outputs.collector_image == 'true'
7278
uses: docker/build-push-action@v6
7379
with:
7480
context: ./collector
@@ -80,7 +86,7 @@ jobs:
8086
cache-to: type=gha,mode=max
8187

8288
- name: Build and push Frontend image
83-
if: steps.changes.outputs.frontend == 'true' || steps.changes.outputs.shared == 'true'
89+
if: steps.changes.outputs.frontend_image == 'true'
8490
uses: docker/build-push-action@v6
8591
with:
8692
context: ./frontend

0 commit comments

Comments
 (0)