ci(deploy): skip prod rebuild for docs/tooling-only merges #72
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gertjan/bodega!72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/skip-deploy-docs-only"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The deploy job ran
docker compose build --no-cache && up -don everymerge to main, restarting all prod containers even when a merge touched
only docs or tooling — wasteful and causing needless downtime.
Add a guard step that diffs the merge commit against its parent
(fetch-depth: 2) and, when every changed path matches the docs/tooling
allowlist (*.md at any depth, scripts/, docs/), short-circuits the
SSH/rsync/build steps. The default is to deploy: only an all-allowlisted
diff skips, so any new or unknown path — src/**, pyproject.toml, uv.lock,
Dockerfile, docker-compose.yml, settings.yaml, workflows — still ships.
The
checkjob (lint/typecheck/tests/audit) is unchanged and still runson every PR and push.
Closes #67
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
b2289fe9cc90c2c33b7e