Skip to content

Commit

Permalink
Add Goreleaser config
Browse files Browse the repository at this point in the history
Goreleaser will allow us to easily do releases for Gosbench
  • Loading branch information
mulbc committed Apr 9, 2020
1 parent e37070b commit 57e77de
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
testconf.yaml
modd.conf
main
dist/
59 changes: 59 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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:
- id: server
dir: server
binary: server
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
env:
- CGO_ENABLED=0
- id: worker
dir: worker
binary: worker
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
env:
- CGO_ENABLED=0
archives:
- replacements:
darwin: macOS
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
signs:
- artifacts: checksum
release:
draft: true
prerelease: true
disable: true

0 comments on commit 57e77de

Please sign in to comment.