Files
mqtt2prometheus/.goreleaser.yml
2020-10-19 22:47:25 +02:00

72 lines
1.8 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:{{ .Tag }}"
- "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"