From 0ec9dd32184547dc1cc2d67a9b7f21623c6d9541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20M=C5=9Bcichowski?= Date: Wed, 14 Aug 2019 14:46:44 +0200 Subject: [PATCH] Add goreleaser file (#11) --- .goreleaser.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..9bc2527 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,41 @@ +# This is an example goreleaser.yaml file with some sane defaults. +# Make sure to check the documentation at http://goreleaser.com +project_name: hydra-maester + +env: + - GO111MODULE=on + +before: + hooks: + - "go mod download" + +builds: + - flags: + - -a + binary: manager + env: + - CGO_ENABLED=0 + goarch: + - amd64 + - 386 + goos: + - linux + +snapshot: + name_template: "{{ .Tag }}-next" + +changelog: + sort: asc + + +dockers: + - image_templates: + - "oryd/hydra-maester:v{{ .Major }}" + - "oryd/hydra-maester:v{{ .Major }}.{{ .Minor }}" + - "oryd/hydra-maester:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}" + - "oryd/hydra-maester:{{ .Env.DOCKER_SHORT_TAG }}" + - "oryd/hydra-maester:latest" + +release: + prerelease: auto + name_template: "{{.Env.RELEASE_NAME}}"