Fix multi-arch Docker image build#9
Merged
RussellLuo merged 1 commit intoMay 22, 2026
Conversation
72527c9 to
992da0b
Compare
This was referenced May 20, 2026
Collaborator
|
@wanghaojie124 Please help review this. |
|
Re: runtime multi-arch base — we've already mirrored full multi-arch indexes to ACR: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsghq/golang:1.25-alpine Suggest using these for builder + runtime instead of single-arch opencsg_public mirrors or pulling alpine:3.23 from Docker Hub in CI. |
992da0b to
a96a2c0
Compare
a96a2c0 to
2ada0bd
Compare
|
LGTM |
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.
Summary
alpine:3.23Why
The previous runtime Alpine mirror can be single-arch, which risks producing an invalid multi-arch image or mixing the wrong architecture into the final runtime image. This change keeps fast mirrored images for build stages while using a verified multi-arch runtime base.
Validation
git diff --checkmake -n build GO="CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go" PLATFORM=linux ARCH=arm64Full Docker buildx push was not run locally; the GitLab CI job now performs the architecture validation.