Files
mqtt2prometheus/.goreleaser.yml
Christoph Petrausch 61ef50a0b0 Test multi arch build
2021-02-03 09:32:10 +01:00

107 lines
3.2 KiB
YAML

# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
release:
prerelease: auto
builds:
- env:
- CGO_ENABLED=0
main: cmd/mqtt2prometheus.go
# GOOS list to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
# Defaults are darwin and linux.
goos:
- linux
- darwin
- freebsd
- windows
# GOARCH to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
# Defaults are 386 and amd64.
goarch:
- amd64
- arm
- arm64
# GOARM to build for when GOARCH is arm.
# For more info refer to: https://golang.org/doc/install/source#environment
# Default is only 6.
goarm:
- 5
- 6
- 7
# GOMIPS and GOMIPS64 to build when GOARCH is mips, mips64, mipsle or mips64le.
# For more info refer to: https://golang.org/doc/install/source#environment
# Default is empty.
gomips:
- hardfloat
- softfloat
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
- dockerfile: release/Dockerfile.scratch
image_templates:
- "hikhvar/mqtt2prometheus:latest"
- "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}"
- "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest"
- "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}"
- "ghcr.io/hikhvar/mqtt2prometheus:latest"
- dockerfile: release/Dockerfile.scratch
goos: linux
goarch: amd64
image_templates:
- "hikhvar/mqtt2prometheus:{{ .Tag }}-amd64"
- "hikhvar/mqtt2prometheus:latest}-amd64"
- "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}}-amd64"
- "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest}-amd64"
- "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}}-amd64"
- "ghcr.io/hikhvar/mqtt2prometheus:latest}-amd64"
- dockerfile: release/Dockerfile.scratch
goos: linux
goarch: arm64
image_templates:
- "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64"
- "hikhvar/mqtt2prometheus:latest}-arm64"
- "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}}-arm64"
- "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest}-arm64"
- "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}}-arm64"
- "ghcr.io/hikhvar/mqtt2prometheus:latest}-arm64"
# .goreleaser.yml
docker_manifests:
# You can have multiple Docker manifests.
-
# Name template for the manifest.
# Defaults to empty.
name_template: hikhvar/mqtt2prometheus:{{ .Tag }}
# Image name templates to be added to this manifest.
# Defaults to empty.
image_templates:
- "hikhvar/mqtt2prometheus:{{ .Tag }}-amd64"
- "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64"