update builds to trigger only on relevant changes (#1170)

This commit is contained in:
Brandon Thomas authored and GitHub committed 2026-03-18 22:07:20 -04:00
1 parent 5a07903870
commit fea20c417c
2 files changed
+24 -43

No files matched your search

+14
View File
@@ -10,6 +10,20 @@ on:
#- $default-branch
- main
- test
# Only build when files that affect the Docker image change.
# This avoids expensive 15-25 min builds for docs-only or config-only changes.
paths:
# Individual files
- '.github/workflows/docker-publish-cpu.yml'
- 'Cargo.lock'
- 'Cargo.toml'
- 'build/service_cpu.Dockerfile'
# Directories
- '.sqlx/**'
- '_database/**'
- 'crates/**'
- 'includes/**'
- 'test_data/**'
env:
IMAGE_NAME: storyteller-rust