From 22afc6cc4e5f2c0f803f94db3904392ce6490595 Mon Sep 17 00:00:00 2001 From: Enrico Stahn Date: Mon, 31 Dec 2018 10:10:10 +1100 Subject: [PATCH] chore: Update goreleaser config for docker goreleaser deprecated their docker settings and uses image_templates now. --- .goreleaser.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 90fd8fd..45004f5 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -10,7 +10,15 @@ builds: - amd64 dockers: - - image: hipages/php-fpm_exporter + - 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 \ No newline at end of file + format: binary