Skip to content

Commit

Permalink
Add goreleaser flags (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
joohoi authored Feb 16, 2021
1 parent 2d04c6c commit 75c7527
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
builds:
- binary: acme-dns-client
flags:
- -trimpath
env:
- CGO_ENABLED=0
asmflags:
- all=-trimpath={{.Env.GOPATH}}
gcflags:
- all=-trimpath={{.Env.GOPATH}}
ldflags: |
-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -extldflags '-static'
goos:
- linux
- windows
Expand Down

0 comments on commit 75c7527

Please sign in to comment.