Skip to content

Publish the mock-llmd image for linux/arm64 as well as amd64 - #1

Merged
zhanghaohit merged 1 commit into
masterfrom
feat/multiarch-image
Oct 28, 2026
Merged

zhanghaohit merged 1 commit into
masterfrom
feat/multiarch-image

Conversation

@zhanghaohit

Copy link
Copy Markdown
Contributor

What

Build and publish ghcr.io/modelsphere/mock-llmd for linux/arm64 in addition to linux/amd64.

How

The binary is static Go (CGO_ENABLED=0), so the build stage runs on the builder's platform (--platform=$BUILDPLATFORM) and cross-compiles with GOARCH=$TARGETARCH. Only the distroless runtime stage is per-target, so the arm64 image needs no emulation.

The workflow's platforms becomes linux/amd64,linux/arm64; tags, labels and the push conditions are unchanged.

Testing

The pull-request run of the publish workflow builds both platforms (nothing is pushed). After merge, the image published from the default branch can be checked with docker buildx imagetools inspect: its index should list linux/amd64 and linux/arm64.

The binary is static Go (CGO_ENABLED=0), so the build stage now runs on
the builder's own platform and cross-compiles with GOARCH=$TARGETARCH.
Only the distroless runtime stage is per-target, so the arm64 image
needs no emulation.
@zhanghaohit
zhanghaohit merged commit 27fac96 into master Oct 28, 2026
2 checks passed
@zhanghaohit zhanghaohit mentioned this pull request Oct 28, 2026
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