Skip to content

What is the best way to configure docker image parties for building multiple platforms? #5391

Closed Answered by caarlos0
ruanun asked this question in Q&A
Discussion options

You must be logged in to vote

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

dockers:
- image_templates:
- "goreleaser/goreleaser:v{{ .Version }}-amd64"
- "ghcr.io/goreleaser/goreleaser:v{{ .Version }}-amd64"
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/goreleaser/goreleaser/main/README.md"
- "--label=io.artifacthub.package.logo-url=https://goreleaser.com/static/avatar.png"
- '--label=io.artifacthub.package.mai…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ruanun
Comment options

@caarlos0
Comment options

@ruanun
Comment options

Answer selected by caarlos0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants