-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yml
107 lines (101 loc) · 2.14 KB
/
.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# goreleaser.yaml file for gofwd
builds:
-
id: "alpha"
goos:
- linux
- freebsd
goarch:
- amd64
- arm
goarm:
- 7
flags:
- -tags=netgo
ldflags:
- -extldflags "-static" -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
env:
- CGO_ENABLED=0
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarch: 386
- goos: freebsd
goarch: arm
goarm: 7
- goos: windows
goarch: 386
-
id: "beta"
goos:
- darwin
ldflags:
- -s -w -extldflags "-sectcreate __TEXT __info_plist Info.plist" -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
env:
- CGO_ENABLED=0
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarch: 386
- goos: freebsd
goarch: 386
- goos: windows
goarch: 386
-
id: "gamma"
goos:
- windows
flags:
- -tags=netgo
ldflags:
- -extldflags -static -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser -s -w
env:
- CGO_ENABLED=0
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarch: 386
- goos: freebsd
goarch: 386
- goos: windows
goarch: 386
- goos: windows
goarch: arm64
hooks:
post:
- upx -9 "{{ .Path }}"
archives:
-
name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin" }}macos
{{- else }}{{ .Os}}{{ end }}_
{{- .Arch }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
{{- if .Mips }}_{{ .Mips }}{{ end }}
format: tar.xz
format_overrides:
- goos: windows
format: zip
wrap_in_directory: true
files:
- LICENSE
- README.md
- duo-example.ini
- docker_build_image.sh
- docker_start_gofwd.sh
- Dockerfile
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}--checksums.txt"
release:
draft: true
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'