Skip to content

Commit a88ed3c

Browse files
committed
Create amd64 and arm64 multi-platform container image
1 parent eb8f5a6 commit a88ed3c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.goreleaser.yml

+21
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,27 @@ dockers:
3434
dockerfile: goreleaser.dockerfile
3535
build_flag_templates:
3636
- "--build-arg=BINARY_NAME={{ .ProjectName }}"
37+
- "--platform=linux/amd64"
38+
use: buildx
39+
- ids:
40+
- prometheus-libvirt-exporter
41+
image_templates:
42+
- ghcr.io/inovex/{{ .ProjectName }}:{{ .Version }}
43+
goos: linux
44+
goarch: arm64
45+
dockerfile: goreleaser.dockerfile
46+
build_flag_templates:
47+
- "--build-arg=BINARY_NAME={{ .ProjectName }}"
48+
- "--platform=linux/arm64"
49+
use: buildx
50+
51+
docker_manifests:
52+
- name_template: 'myorg/myuser:{{ .Tag }}'
53+
image_templates:
54+
- 'myorg/myuser:{{ .Tag }}-amd64'
55+
- 'myorg/myuser:{{ .Tag }}-arm64'
56+
57+
3758
#Configuration for building packages for apk, deb and rpm package managers
3859
nfpms:
3960
- id: "prometheus-libvirt-exporter"

0 commit comments

Comments
 (0)