-
This is the configuration: project_name: myproject
version: 2
builds:
- id: multiarch
binary: multiarch
hooks:
pre:
- go mod tidy
goos:
- linux
goarch:
- amd64
- arm64
archives:
.....
dockers:
- id: multiarch-linux-amd64
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
image_templates:
- "ruanun/multiarch:{{ .Version }}"
- "ruanun/multiarch:latest"
- id: multiarch-linux-arm64
goarch: arm64
use: buildx
build_flag_templates:
- "--platform=linux/arm64"
image_templates:
- "ruanun/multiarch:{{ .Version }}"
- "ruanun/multiarch:latest"
docker_manifests:
- id: multiarch
name_template: "ruanun/multiarch:{{ .Version }}"
image_templates:
- "ruanun/multiarch:{{ .Version }}"
- "ruanun/multiarch:latest"
I expected that: |
Beta Was this translation helpful? Give feedback.
Answered by
caarlos0
Dec 24, 2024
Replies: 1 comment 3 replies
-
you need to specify the arch somewhere in the docker builds, and then use both in the manifests see, for example, goreleaser config itself: Lines 109 to 176 in 7054113 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
caarlos0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you need to specify the arch somewhere in the docker builds, and then use both in the manifests
see, for example, goreleaser config itself:
goreleaser/.goreleaser.yaml
Lines 109 to 176 in 7054113