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:
xtcnet 2026-03-17 22:28:35 +07:00
parent ce0d4f7611
commit 04a22dcc7d

View file

@ -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