ci(docker): multi-arch image (amd64 + arm64) so the plugin works on Apple Silicon - #10
Merged
Merged
Conversation
The single-runner build produced an amd64-only manifest, so `docker pull`
on Apple Silicon failed ("no matching manifest for linux/arm64/v8") — the
plugin could not run on Apple Silicon Macs at all.
Rebuild as a proper multi-arch manifest list: a matrix builds each arch on
its OWN native runner (amd64 on ubuntu-latest, arm64 on ubuntu-24.04-arm —
free for public repos, no QEMU), pushes by digest with provenance:false,
then a merge job stitches the digests into one tagged manifest list and
inspects it. Docker now auto-selects the native arch on every host.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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 first published image was amd64-only, so
docker pullon Apple Silicon failed outright (no matching manifest for linux/arm64/v8) — the plugin could not run on Apple Silicon Macs at all.Fix
Rebuild as a proper multi-arch manifest list using a native-runner matrix (no QEMU):
linux/amd64onubuntu-latest,linux/arm64onubuntu-24.04-arm(free for public repos), in parallelprovenance: false(so the merged list is exactly the two arches, nounknown/unknownattestation noise)mergejob stitches the digests into one tagged manifest list and inspects itVerified (on the branch test tag, before touching
latest)Dispatched this workflow from the branch → produced
ghcr.io/mohitbadwal/ringback:feat-plugin-multiarch:linux/amd64+linux/arm64docker manifest inspecton an Apple Silicon Mac → both arches present,arm64 present: TrueMerging this runs the workflow on
main, which applies thelatesttag →latestbecomes multi-arch. After merge I will confirmlatestresolves arm64 and clean up the temporaryfeat-plugin-multiarchtag.(Minor: the Node 20 deprecation warning from the actions is non-blocking — optional version bump later.)
🤖 Generated with Claude Code