Skip to content

ci: Build amd64 only on main, attest images, and notify the homelab - #9

Merged
marcodejongh merged 1 commit into
mainfrom
ci/homelab-image-deploy
Oct 4, 2026
Merged

marcodejongh merged 1 commit into
mainfrom
ci/homelab-image-deploy

Conversation

@marcodejongh

Copy link
Copy Markdown
Owner

The image build for f875d54 took 72 minutes, nearly all of it the web image's arm64 leg under emulation (the daemon took 9). This makes a fix on main reach the homelab without a manual build.

Changes to build_and_publish_docker.yml

  • Platforms: pushes to main build linux/amd64 only. Version tags (v*) still build linux/amd64 and linux/arm64, and QEMU is only set up for those.
  • Attestation: both images get actions/attest-build-provenance, pushed to the registry. The homelab refuses any digest that is not attested as a main build of this workflow at the commit it claims.
  • Dispatch: a dispatch-homelab job sends repository_dispatch (inboxzero-image) to marcodejongh/blackheathdc-ansible with both digests, the commit and the run URL. It runs only for pushes to main and only when the repository variable HOMELAB_DEPLOY_ENABLED is true.
  • The matrix becomes two jobs (web, daemon) so each digest is a job output.

The receiving side is marcodejongh/blackheathdc-ansible#453.

Needed before this does anything

  • Repository variable HOMELAB_DEPLOY_ENABLED=true.
  • Repository secret HOMELAB_DISPATCH_TOKEN: a fine-grained token limited to blackheathdc-ansible with 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. actionlint passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_016aWR2RR4gm9vRA8bmUgw8s

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
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@marcodejongh
marcodejongh merged commit 178efdf into main Oct 4, 2026
3 checks passed
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