Skip to content

Commit

Permalink
add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Jun 12, 2019
1 parent 33476aa commit 345cdc5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ cmd/server/server
cmd/scanner/main
cmd/server/main
_test*
dist
40 changes: 40 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
env:
- GO111MODULE=on
before:
hooks:
- go mod download
builds:
- id: scanner
env:
- CGO_ENABLED=1
main: ./cmd/scanner/main.go
flags:
- -tags='sqlite foreign_keys'
ldflags:
- "-extldflags '-static'"
- -s -w -X main.build={{.Version}}
- ./usemsan=-msan
goos:
- linux
goarch:
- amd64
- 386
archives:
- replacements:
darwin: darwin
linux: linux
windows: windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
disable: true

0 comments on commit 345cdc5

Please sign in to comment.