Repository navigation
ci: Build amd64 only on main, attest images, and notify the homelab - #9
Merged
Merged
Conversation
The web image took 72 minutes on main because arm64 is built under emulation. Pushes to main now build amd64 alone; version tags still build both architectures. Both images get a build provenance attestation, and after a main build a dispatch-homelab job sends the two digests and the commit to marcodejongh/blackheathdc-ansible, which verifies, pins and deploys them. The job is off unless the HOMELAB_DEPLOY_ENABLED variable is "true". The matrix becomes two jobs so that each image's digest is a job output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016aWR2RR4gm9vRA8bmUgw8s
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The image build for
f875d54took 72 minutes, nearly all of it the web image's arm64 leg under emulation (the daemon took 9). This makes a fix onmainreach the homelab without a manual build.Changes to
build_and_publish_docker.ymlmainbuildlinux/amd64only. Version tags (v*) still buildlinux/amd64andlinux/arm64, and QEMU is only set up for those.actions/attest-build-provenance, pushed to the registry. The homelab refuses any digest that is not attested as amainbuild of this workflow at the commit it claims.dispatch-homelabjob sendsrepository_dispatch(inboxzero-image) tomarcodejongh/blackheathdc-ansiblewith both digests, the commit and the run URL. It runs only for pushes tomainand only when the repository variableHOMELAB_DEPLOY_ENABLEDistrue.web,daemon) so each digest is a job output.The receiving side is marcodejongh/blackheathdc-ansible#453.
Needed before this does anything
HOMELAB_DEPLOY_ENABLED=true.HOMELAB_DISPATCH_TOKEN: a fine-grained token limited toblackheathdc-ansiblewith Contents read/write.Without the variable the build and attestation still run and the dispatch job is skipped.
Not tested
Workflow changes only take effect on
main, so nothing here has run yet. The amd64-only build time is an estimate (10–15 minutes) until the first run.actionlintpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_016aWR2RR4gm9vRA8bmUgw8s