Skip to content

ci: build and scan the image only on pushes to main - #46

Merged
nettlesh merged 1 commit into
mainfrom
claude/image-main-only
Oct 22, 2026
Merged

nettlesh merged 1 commit into
mainfrom
claude/image-main-only

Conversation

@nettlesh

Copy link
Copy Markdown
Owner

Summary

  • Skip the Image job on pull requests. It builds the image (about 4 minutes) and runs Trivy (about 3 minutes), which made it about 7 of PR CI's 7.5 minutes; PR CI should now take about 3.5 minutes, with macOS the slowest job
  • Keep it on every push to main. The Release job still needs it, so release-please creates no release until the image builds and passes its scan, and the publish job scans the release commit again before pushing
  • Update the README's CI description

Trade-off: a Dockerfile change is first built after it merges. The Linux job still tests the same Arch bootstrap on every PR, and nothing publishes until main is green.

Testing

  • hk check passes, including jactionlint and zizmor
  • This PR's own CI should show Image as skipped

🤖 Generated with Claude Code

The image job took about 7 of PR CI's 7.5 minutes, and newly disclosed
upstream CVEs failed it on unrelated pull requests. It still runs on every
push to main, where the release job waits for it, so release-please cuts no
release until the image builds and passes its scan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nettlesh
nettlesh merged commit 696041b into main Oct 22, 2026
5 checks passed
@nettlesh
nettlesh deleted the claude/image-main-only branch October 22, 2026 22:03
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