<#839 release: pass GOARCH build-arg to arm64 dock...
# osctrl
g
#839 release: pass GOARCH build-arg to arm64 docker builds Pull request opened by alvarofraguas Summary • The four Dockerfiles in
deploy/cicd/docker/
declare
ARG GOARCH=amd64
as the default • The arm64 goreleaser blocks pass
--platform=linux/arm64
but never override the
GOARCH
build arg • The
COPY osctrl-${COMPONENT}-${GOOS}-${GOARCH}
instruction therefore looks for the amd64 binary inside an arm64 build context and fails with
"/osctrl-admin-linux-amd64": not found
This 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=arm64
to each of the four arm64 docker blocks in
.goreleaser.yml
. Test plan
goreleaser check
passes • CI main workflow passes after merge (arm64 docker images should now find the correct binary) jmpsec/osctrl