ci: skip Docker build when only non-image files change
Add paths filter so the build only triggers on changes to backend/, frontend/, docker/, or the workflow file itself. Edits to install.sh, CLAUDE.md, etc. no longer cause unnecessary image rebuilds. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ce0d4f7611
commit
04a22dcc7d
1 changed files with 10 additions and 0 deletions
10
.github/workflows/docker-publish.yml
vendored
10
.github/workflows/docker-publish.yml
vendored
|
|
@ -4,8 +4,18 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
tags: [ 'v*.*.*' ]
|
tags: [ 'v*.*.*' ]
|
||||||
|
paths:
|
||||||
|
- 'backend/**'
|
||||||
|
- 'frontend/**'
|
||||||
|
- 'docker/**'
|
||||||
|
- '.github/workflows/docker-publish.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
|
paths:
|
||||||
|
- 'backend/**'
|
||||||
|
- 'frontend/**'
|
||||||
|
- 'docker/**'
|
||||||
|
- '.github/workflows/docker-publish.yml'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue