deploy: skip prod rebuild for docs/tooling-only merges #67
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#67
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
Every merge to
mainruns thedeployjob, which doesdocker compose build --no-cache && up -dfor all containers. Doc/tooling-only changes (e.g.CLAUDE.md,scripts/**) therefore trigger a full no-cache rebuild + restart of production despite no runtime code change. Wasteful and causes unnecessary downtime.Proposal
Skip (or short-circuit) the
deployjob when a merge touches only non-runtime paths. Candidate "docs/tooling-only" allowlist:*.md(incl.CLAUDE.md,CHANGELOG.md)scripts/**docs/**(if/when it exists)Options to evaluate:
deployjob early when every changed file matches the allowlist.checkrunning regardless (lint/typecheck/tests are cheap and still useful).Acceptance
src/**,pyproject.toml,uv.lock,Dockerfile,docker-compose.yml,settings.yaml, or workflow files still deploys.Context: introduced alongside the PR-based workflow (PRs #65, #66). See the "Development workflow" section in
CLAUDE.md.