Skip to content

Commit 6d3f34d

Browse files
parth0025claude
andauthored
ci(docker): skip PR triggers β€” build only on push to main + release (#218)
Docker workflow no longer runs on pull_request events. Triggers are now scoped to: - release: published (release-please tags) - push to main (after a PR merges) - workflow_dispatch (manual run from Actions UI) Rationale: multi-arch docker builds (amd64 + arm64 via QEMU emulation) take 12-18 minutes on cold cache, 3-6 minutes on warm cache. Running them on every PR (even with the paths-filter scoping to docker-related files) blocks PR review feedback and slows the iteration loop. Trade-off accepted: - Docker breakage is now caught one step later: after a PR merges to main, not during PR review. - Easy to revert with a follow-up PR if a breaking change lands on main. - release.yml will fail loudly if the post-merge image build is broken, so we still get a hard signal before tagging a release. Docker files (Dockerfile, .dockerignore, docker-compose.yml, docker.yml) change rarely β€” most PRs are unaffected by this change. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 5fb7852 commit 6d3f34d

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

β€Ž.github/workflows/docker.ymlβ€Ž

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,16 @@ name: Docker
2626
# ─────────────────────────────────────────────────────────────────────
2727

2828
on:
29+
# Build + publish image when a release tag is cut by release-please
2930
release:
3031
types: [published]
32+
33+
# Build + publish image on every commit to main (after a PR merges)
3134
push:
3235
branches:
3336
- main
34-
pull_request:
35-
branches:
36-
- main
37-
paths:
38-
- 'Dockerfile'
39-
- '.dockerignore'
40-
- 'docker-compose.yml'
41-
- '.github/workflows/docker.yml'
42-
- 'package.json'
43-
- 'frontend/package.json'
37+
38+
# Manual trigger from the Actions UI
4439
workflow_dispatch:
4540

4641
permissions:

0 commit comments

Comments
Β (0)