Skip to content

Commit

Permalink
add goreleaser
Browse files Browse the repository at this point in the history
Signed-off-by: Kohei Morita <[email protected]>
  • Loading branch information
mrtc0 committed Sep 23, 2021
1 parent a7cdf44 commit 7ac985f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
vendor/
bouheki

dist/
30 changes: 30 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- env:
- CGO_ENABLED=1
- CGO_LDFLAGS=-Wl,-Bstatic -lbpf -Wl,-Bdynamic
goos:
- linux
goarch:
- amd64
ldflags:
- -w -s -X main.version={{.Version}}
main: ./cmd/bouheki
binary: bouheki
archives:
- replacements:
linux: Linux
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit 7ac985f

Please sign in to comment.