From dc965a7dfdbcd45d3a0fc5ed9fed41466b31c1d9 Mon Sep 17 00:00:00 2001 From: Adam Koszek Date: Mon, 24 Nov 2025 22:54:34 -0800 Subject: [PATCH] Fix: Remove buildx to fix --load flag error (fixes #149) Remove `use: buildx` from Docker configuration to fix the --load flag error that occurs with multi-platform builds. Problem: When using buildx with multi-platform builds, GoReleaser tries to use --load flag which is incompatible with multi-platform images. The --load flag only works for single-platform builds loaded into the local Docker daemon. Solution: Remove `use: buildx` and let GoReleaser build each architecture separately using standard Docker build. Each architecture is built individually, then docker_manifests combines them into multi-arch manifests. How it works now: 1. Build linux/amd64 image separately 2. Build linux/arm64 image separately 3. Create docker_manifests to combine both 4. Push multi-arch manifests to registry This avoids the buildx --load conflict while maintaining multi-arch support. --- .goreleaser.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b5e4c2c..07199cd 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -244,7 +244,6 @@ dockers: - image_templates: - "ghcr.io/bsubio/cli:{{ .Tag }}-amd64" dockerfile: Dockerfile - use: buildx goos: linux goarch: amd64 build_flag_templates: @@ -263,7 +262,6 @@ dockers: - image_templates: - "ghcr.io/bsubio/cli:{{ .Tag }}-arm64" dockerfile: Dockerfile - use: buildx goos: linux goarch: arm64 build_flag_templates: