Skip to content

ci: publish web UI image as multi-arch (amd64 + arm64)#81

Merged
mfaferek93 merged 1 commit into
mainfrom
ci/web-ui-multiarch
May 30, 2026
Merged

ci: publish web UI image as multi-arch (amd64 + arm64)#81
mfaferek93 merged 1 commit into
mainfrom
ci/web-ui-multiarch

Conversation

@mfaferek93
Copy link
Copy Markdown
Contributor

Problem

ghcr.io/selfpatch/ros2_medkit_web_ui:latest is published for linux/amd64 only. Pulling it on an arm64 host (Apple Silicon) fails with:

no matching manifest for linux/arm64/v8 in the manifest list entries: no match for platform in manifest: not found

This breaks every Docker Compose demo that runs the web UI on an arm64 machine.

Why it was amd64-only

arm64 was previously produced by cross-building under QEMU emulation, where npm ci and the Vite build segfault intermittently (uncaught target signal 11). The workflow was pinned to platforms: linux/amd64 to avoid that flakiness.

Fix

Build each architecture on its own native GitHub-hosted runner, no emulation:

  • linux/amd64 on ubuntu-24.04
  • linux/arm64 on ubuntu-24.04-arm (GA and free for public repos)

Each arch is pushed by digest, then a merge job assembles a single multi-arch manifest list with docker buildx imagetools create. The tag scheme (latest, semver, sha-*) and triggers are unchanged. Pull requests build both arches to validate, without pushing.

Notes

  • Job names change from build-and-push to build + merge; update any required status checks pinned to the old name.
  • Per-arch GHA cache scopes prevent the two builds from evicting each other.
  • Image consumers need no changes once the multi-arch manifest exists.

Build each arch on its own native runner (ubuntu-24.04 and
ubuntu-24.04-arm) and merge the digests into one manifest list,
instead of amd64-only. Fixes 'no matching manifest for linux/arm64'
when pulling the image on Apple Silicon.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Docker publish workflow so the web UI image is built and published as a multi-architecture image for both linux/amd64 and linux/arm64, avoiding QEMU-based cross-build flakiness by using native GitHub-hosted runners.

Changes:

  • Replaces the single amd64 publish job with a native per-architecture build matrix.
  • Pushes each architecture by digest, then merges digests into a tagged multi-arch manifest list.
  • Keeps existing tag strategy and skips publishing/manifest merge on pull requests.

@mfaferek93 mfaferek93 requested a review from bburda May 30, 2026 18:40
@mfaferek93 mfaferek93 merged commit 9e79700 into main May 30, 2026
6 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.

3 participants