Add goreleaser to distribute binaries (#460)

See https://github.com/future-architect/vuls/issues/459
This commit is contained in:
Emilien Kenler
2017-09-28 15:29:27 +09:00
committed by Kota Kanbe
parent 83bbbd0cb0
commit a8483b2195
2 changed files with 33 additions and 0 deletions

31
.goreleaser.yml Normal file
View File

@@ -0,0 +1,31 @@
project_name: vuls
release:
github:
owner: future-architect
name: vuls
builds:
- goos:
- linux
- freebsd
goarch:
- "386"
- amd64
- arm
- arm64
goarm:
- "6"
- "7"
main: .
ldflags: -s -w -X main.version={{.Version}} -X main.revision={{.Commit}}
binary: vuls
archive:
format: tar.gz
name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{
.Arm }}{{ end }}'
files:
- LICENSE
- NOTICE
- README*
- CHANGELOG.md
snapshot:
name_template: SNAPSHOT-{{ .Commit }}

View File

@@ -3,3 +3,5 @@ language: go
go:
- 1.8
after_success:
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash