Skip to content

Commit

Permalink
Adding goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
luizbafilho committed Dec 2, 2020
1 parent 362c0a6 commit f8d1fa7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ __pycache__
bin/*

lokustctl/lokustctl
dist
34 changes: 34 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 ./...
builds:
- main: ./lokustctl/main.go
binary: lokustctl
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
release:
prerelease: auto
archives:
- format: binary
replacements:
darwin: Darwin
linux: Linux
amd64: x86_64
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"

0 comments on commit f8d1fa7

Please sign in to comment.