Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add goreleaser file #11

Merged
merged 2 commits into from
Aug 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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}}"