Skip to content

Commit

Permalink
Create amd64, arm64, riscv64 container images and provide as multi-pl…
Browse files Browse the repository at this point in the history
…atform image
  • Loading branch information
frittentheke committed Apr 2, 2024
1 parent 0a42e82 commit a105067
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,43 @@ 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
- ids:
- prometheus-libvirt-exporter
image_templates:
- ghcr.io/inovex/{{ .ProjectName }}:{{ .Version }}-riscv64
goos: linux
goarch: riscv64
dockerfile: goreleaser.dockerfile
build_flag_templates:
- "--build-arg=BINARY_NAME={{ .ProjectName }}"
- "--platform=linux/riscv64"
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'
- 'ghcr.io/inovex/{{ .ProjectName }}:{{ .Version }}-riscv64'

#Configuration for building packages for apk, deb and rpm package managers
nfpms:
Expand Down Expand Up @@ -83,6 +114,9 @@ release:
name: prometheus-libvirt-exporter
footer: |
## Docker Images
- ghrc.io/inovex/prometheus-libvirt-exporter:{{ trimprefix .Tag "v" }}
- ghcr.io/inovex/prometheus-libvirt-exporter:{{ trimprefix .Tag "v" }} (universal, multi-platform)
- ghcr.io/inovex/prometheus-libvirt-exporter:{{ trimprefix .Tag "v" }}-amd64
- ghcr.io/inovex/prometheus-libvirt-exporter:{{ trimprefix .Tag "v" }}-arm64
- ghcr.io/inovex/prometheus-libvirt-exporter:{{ trimprefix .Tag "v" }}-riscv64
#draft: true
replace_existing_draft: true

0 comments on commit a105067

Please sign in to comment.