Skip to content

Commit

Permalink
Build multi-arch image with GoReleaser (#282)
Browse files Browse the repository at this point in the history
* Build multi-arch image with GoReleaser

* Enable buildx
  • Loading branch information
ciffelia authored Jun 19, 2023
1 parent 92080e4 commit 1d0516c
Showing 1 changed file with 62 additions and 6 deletions.
68 changes: 62 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@ dockers:
-
dockerfile: Dockerfile
image_templates:
- quay.io/mittwald/kubernetes-replicator:latest
- quay.io/mittwald/kubernetes-replicator:stable
- quay.io/mittwald/kubernetes-replicator:v{{ .Major }}
- quay.io/mittwald/kubernetes-replicator:v{{ .Major }}.{{ .Minor }}
- quay.io/mittwald/kubernetes-replicator:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-amd64:latest
- quay.io/mittwald/kubernetes-replicator-amd64:stable
- quay.io/mittwald/kubernetes-replicator-amd64:v{{ .Major }}
- quay.io/mittwald/kubernetes-replicator-amd64:v{{ .Major }}.{{ .Minor }}
- quay.io/mittwald/kubernetes-replicator-amd64:{{ .Tag }}
ids:
- kubernetes-replicator
goos: linux
goarch: amd64
goarm: ''
use: buildx
build_flag_templates:
- --platform=linux/amd64
-
dockerfile: Dockerfile
image_templates:
Expand All @@ -50,6 +53,9 @@ dockers:
goos: linux
goarch: arm64
goarm: ''
use: buildx
build_flag_templates:
- --platform=linux/arm64
-
dockerfile: Dockerfile
image_templates:
Expand All @@ -63,6 +69,9 @@ dockers:
goos: linux
goarch: arm
goarm: '5'
use: buildx
build_flag_templates:
- --platform=linux/arm/v5
-
dockerfile: Dockerfile
image_templates:
Expand All @@ -76,6 +85,9 @@ dockers:
goos: linux
goarch: arm
goarm: '6'
use: buildx
build_flag_templates:
- --platform=linux/arm/v6
-
dockerfile: Dockerfile
image_templates:
Expand All @@ -88,4 +100,48 @@ dockers:
- kubernetes-replicator
goos: linux
goarch: arm
goarm: '7'
goarm: '7'
use: buildx
build_flag_templates:
- --platform=linux/arm/v7
docker_manifests:
-
name_template: quay.io/mittwald/kubernetes-replicator:latest
image_templates:
- quay.io/mittwald/kubernetes-replicator-amd64:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-arm64:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv5:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv6:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv7:{{ .Tag }}
-
name_template: quay.io/mittwald/kubernetes-replicator:stable
image_templates:
- quay.io/mittwald/kubernetes-replicator-amd64:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-arm64:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv5:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv6:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv7:{{ .Tag }}
-
name_template: quay.io/mittwald/kubernetes-replicator:v{{ .Major }}
image_templates:
- quay.io/mittwald/kubernetes-replicator-amd64:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-arm64:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv5:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv6:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv7:{{ .Tag }}
-
name_template: quay.io/mittwald/kubernetes-replicator:v{{ .Major }}.{{ .Minor }}
image_templates:
- quay.io/mittwald/kubernetes-replicator-amd64:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-arm64:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv5:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv6:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv7:{{ .Tag }}
-
name_template: quay.io/mittwald/kubernetes-replicator:{{ .Tag }}
image_templates:
- quay.io/mittwald/kubernetes-replicator-amd64:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-arm64:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv5:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv6:{{ .Tag }}
- quay.io/mittwald/kubernetes-replicator-armv7:{{ .Tag }}

0 comments on commit 1d0516c

Please sign in to comment.