Skip to content

Commit

Permalink
Create amd64 and arm64 container images and provide multi-platform image
Browse files Browse the repository at this point in the history
  • Loading branch information
frittentheke committed Apr 2, 2024
1 parent 64494d2 commit 48b1729
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,31 @@ dockers:
- ids:
- prometheus-libvirt-exporter
image_templates:
- ghcr.io/inovex/{{ .ProjectName }}:{{ .Version }}
- ghcr.io/inovex/{{ .ProjectName }}:{{ .Version }}-amd64
goos: linux
goarch: amd64
dockerfile: goreleaser.dockerfile
build_flag_templates:
- "--build-arg=BINARY_NAME={{ .ProjectName }}"
- "--platform=linux/amd64"
use: buildx
- ids:
- prometheus-libvirt-exporter
image_templates:
- ghcr.io/inovex/{{ .ProjectName }}:{{ .Version }}-arm64
goos: linux
goarch: arm64
dockerfile: goreleaser.dockerfile
build_flag_templates:
- "--build-arg=BINARY_NAME={{ .ProjectName }}"
- "--platform=linux/arm64"
use: buildx

docker_manifests:
- name_template: 'ghcr.io/inovex/{{ .ProjectName }}:{{ .Version }}'
image_templates:
- 'ghcr.io/inovex/{{ .ProjectName }}:{{ .Version }}-amd64'
- 'ghcr.io/inovex/{{ .ProjectName }}:{{ .Version }}-arm64'

#Configuration for building packages for apk, deb and rpm package managers
nfpms:
Expand Down

0 comments on commit 48b1729

Please sign in to comment.