-
Notifications
You must be signed in to change notification settings - Fork 206
/
.goreleaser.yml
41 lines (40 loc) · 910 Bytes
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod download
builds:
- id: ehco
main: ./cmd/ehco/main.go
flags:
- -trimpath
tags:
- nofibrechannel
- nomountstats
ldflags:
- -w -s
- -X github.com/Ehco1996/ehco/internal/constant.GitBranch={{.Branch}}
- -X github.com/Ehco1996/ehco/internal/constant.GitRevision={{.ShortCommit}}
- -X github.com/Ehco1996/ehco/internal/constant.BuildTime={{.Date}}
- -X github.com/Ehco1996/ehco/internal/constant.Version={{.Version}}
goarch:
- amd64
- arm64
goarm:
- 7
goos:
- linux
binary: "ehco_{{ .Os }}_{{ .Arch }}"
archives:
- format: binary
name_template: "{{ .Binary }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
upx:
- enabled: true
compress: 9
release:
prerelease: auto