<#828 release: fix multi-arch Docker builds (manif...
# osctrl
g
#828 release: fix multi-arch Docker builds (manifest list export error) Pull request opened by alvarofraguas Summary • Every tagged release since v0.4.8 fails at the Docker step with:
Copy code
docker exporter does not currently support exporting manifest lists
The root cause is that a single
buildx
invocation with
--platform=linux/amd64,linux/arm64
tries to export a manifest list, which the default Docker exporter does not support. • Fix: split each component's
dockers:
block into two per-arch entries (e.g.
osctrl-tls:<version>-amd64
and
osctrl-tls:<version>-arm64
), then combine them via
docker_manifests:
into the final multi-arch tags (
<version>
and
latest
).
docker pull <image>:<tag>
now resolves the correct arch automatically. •
skip_push
on manifest entries is gated by
{{ .IsSnapshot }}
so snapshot builds still work without pushing. Changes • `.goreleaser.yml`: 4 multi-platform docker blocks → 8 per-arch blocks + 8
docker_manifests
entries Test plan
goreleaser check
validates the config • Tag a pre-release and verify Docker images are pushed with correct multi-arch manifests jmpsec/osctrl