Skip to content

Add a platforms input for multi-platform builds - #3

Merged
krishan711 merged 2 commits into
mainfrom
multi-platform
Nov 3, 2026
Merged

krishan711 merged 2 commits into
mainfrom
multi-platform

Conversation

@krishan711

Copy link
Copy Markdown
Contributor

Why

YieldSeeker is moving its servers to Graviton (arm64), but the self-hosted BuildKit on kibahome is x86_64. Images need to be built for linux/amd64,linux/arm64 under one tag, so each server pulls its own architecture.

Changes

  • New platforms input, passed to docker/build-push-action.
  • Fails early when tag is used with more than one platform: the local docker daemon can only hold one platform of an image.
  • README: the input, plus registering QEMU on the BuildKit machine (tonistiigi/binfmt --install arm64) and restarting BuildKit.
  • Version 1.1.0.

Tests

The Build workflow now registers QEMU. In both matrix modes (GitHub Actions cache, and shared BuildKit) it:

  • pushes a linux/amd64,linux/arm64 image and checks the manifest has both platforms and that the arm64 variant runs aarch64;
  • checks that tag with two platforms is rejected.

@krishan711
krishan711 merged commit ef35b4b into main Nov 3, 2026
2 checks passed
@krishan711
krishan711 deleted the multi-platform branch November 3, 2026 10:01
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