php-fpm-exporter/.goreleaser.yml
Enrico Stahn 22afc6cc4e
chore: Update goreleaser config for docker
goreleaser deprecated their docker settings and uses image_templates
now.
2018-12-31 10:10:10 +11:00

24 lines
590 B
YAML

builds:
- binary: php-fpm_exporter
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
goarch:
- amd64
dockers:
- image_templates:
- "hipages/php-fpm_exporter:latest"
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}"
- "hipages/php-fpm_exporter:{{ .Major }}"
build_flag_templates:
- "--build-arg=VERSION={{.Version}}"
- "--build-arg=BUILD_DATE={{.Date}}"
- "--build-arg=VCS_REF={{.FullCommit}}"
archive:
format: binary