Skip to content

fix(ci): build Docker images on PRs, push only on main#10

Merged
KaelSensei merged 1 commit into
mainfrom
fix/docker-build-on-prs
Mar 24, 2026
Merged

fix(ci): build Docker images on PRs, push only on main#10
KaelSensei merged 1 commit into
mainfrom
fix/docker-build-on-prs

Conversation

@KaelSensei
Copy link
Copy Markdown
Owner

Summary

  • Removes if: github.ref == 'refs/heads/main' from all 6 build-and-push jobs
  • Docker build now runs on every PR — a broken Dockerfile fails the PR before merge
  • GHCR login and push remain conditional on main (no credentials needed on PRs)

Why

PRs #7 and #8 were both emergency fixes for Dockerfiles that only broke after merge. This change catches that class of failure on the PR itself.

Test plan

  • All 6 Build & Push Docker jobs appear in this PR's checks
  • All 6 build successfully (no push)
  • On merge to main, images are pushed to GHCR as before

🤖 Generated with Claude Code

Removes the job-level `if: github.ref == 'refs/heads/main'` guard from all
six build-and-push jobs. The Docker build now runs on every PR so a broken
Dockerfile is caught before merge. The GHCR login and push remain conditional
on main so no credentials are needed during PR builds.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@KaelSensei KaelSensei merged commit f0d2b85 into main Mar 24, 2026
14 checks passed
@KaelSensei KaelSensei deleted the fix/docker-build-on-prs branch March 24, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant