release: pass GOARCH build-arg to arm64 docker builds#839
Merged
javuto merged 2 commits intoMay 19, 2026
Conversation
uname -i returns x86_64 on Intel but both yq and Go release binaries use amd64 in their filenames, causing 404 downloads. Closes jmpsec#836
The Dockerfiles use ARG GOARCH=amd64 as default. The arm64 goreleaser blocks set --platform=linux/arm64 but never override the GOARCH arg, so the COPY instruction looks for the amd64 binary in an arm64 build context and fails with "not found". Fixes the CI failure surfaced after jmpsec#828 landed — the manifest-list fix let the build proceed far enough to hit this second bug.
2 tasks
javuto
approved these changes
May 19, 2026
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
deploy/cicd/docker/declareARG GOARCH=amd64as the default--platform=linux/arm64but never override theGOARCHbuild argCOPY osctrl-${COMPONENT}-${GOOS}-${GOARCH}instruction therefore looks for the amd64 binary inside an arm64 build context and fails with"/osctrl-admin-linux-amd64": not foundThis was masked by the manifest-list export error fixed in #828. After that merge, the main CI run (26082810103) got past the manifest step but hit this binary name mismatch on the arm64 docker images.
Fix: add
--build-arg=GOARCH=arm64to each of the four arm64 docker blocks in.goreleaser.yml.Test plan
goreleaser checkpasses