Skip to content

Commit f58a873

Browse files
authored
Add support for multi-architecture builds by enabling QEMU binfmt (#318)
1 parent 77986d3 commit f58a873

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ jobs:
109109
name: docker login
110110
command: |
111111
docker login -u _json_key -p "$(echo $GCP_ARTIFACTREADWRITE_JSON_KEY | base64 -d)" us-docker.pkg.dev
112+
# Remote Docker must emulate non-native platforms for GoReleaser's buildx targets (linux/arm64, linux/arm/v7); without binfmt.
113+
- run:
114+
name: Enable multi-arch emulation on remote Docker (QEMU binfmt)
115+
command: |
116+
docker run --rm --privileged tonistiigi/binfmt:latest --install all
112117
- run: goreleaser
113118

114119
workflows:

0 commit comments

Comments
 (0)