-
-
Notifications
You must be signed in to change notification settings - Fork 504
/
Copy path.goreleaser.yml
214 lines (206 loc) · 5.27 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# goreleaser.yml
# Release automation
#
# Build customization
project_name: gopass
before:
hooks:
- make clean
- make completion
- go mod download
builds:
- id: gopass
binary: gopass
flags:
- -trimpath
- -tags=netgo
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:
- darwin
- freebsd
- linux
- openbsd
- windows
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
mod_timestamp: '{{ .CommitTimestamp }}'
- id: gopass-git-credentials
dir: cmd/gopass-git-credentials
binary: gopass-git-credentials
flags:
- -trimpath
- -tags=netgo
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:
- darwin
- linux
- windows
goarch:
- amd64
mod_timestamp: '{{ .CommitTimestamp }}'
- id: gopass-hibp
dir: cmd/gopass-hibp
binary: gopass-hibp
flags:
- -trimpath
- -tags=netgo
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:
- darwin
- linux
- windows
goarch:
- amd64
mod_timestamp: '{{ .CommitTimestamp }}'
- id: gopass-jsonapi
dir: cmd/gopass-jsonapi
binary: gopass-jsonapi
flags:
- -trimpath
- -tags=netgo
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:
- darwin
- linux
- windows
goarch:
- amd64
mod_timestamp: '{{ .CommitTimestamp }}'
- id: gopass-summon-provider
dir: cmd/gopass-summon-provider
binary: gopass-summon-provider
flags:
- -trimpath
- -tags=netgo
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:
- darwin
- linux
- windows
goarch:
- amd64
mod_timestamp: '{{ .CommitTimestamp }}'
archives:
- id: gopass
name_template: "{{.Binary}}-{{.Version}}-{{.Os}}-{{.Arch}}{{ if .Arm }}v{{.Arm }}{{ end }}"
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- CHANGELOG.md
- LICENSE
- README.md
- bash.completion
- fish.completion
- zsh.completion
release:
github:
owner: gopasspw
name: gopass
draft: false
prerelease: auto
brews:
- name: gopass
tap:
owner: gopasspw
name: homebrew-gopass
caveats: |
Gopass has been installed, have fun!
If upgrading from `pass`, everything should work as expected.
If installing from scratch, you need to either initialize a new repository now...
gopass init
...or clone one from a source:
gopass clone [email protected]:example/pass.git
In order to use the great autocompletion features (they're helpful with gopass),
please make sure you have autocompletion for homebrew enabled:
https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion
More information:
https://www.gopass.pw/
https://github.com/gopasspw/gopass/README.md
homepage: "https://www.gopass.pw/"
description: "The slightly more awesome Standard Unix Password Manager for Teams."
dependencies:
- git
- gnupg
- terminal-notifier
install: |
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/gopasspw/gopass").install buildpath.children
cd "src/github.com/gopasspw/gopass" do
ENV["PREFIX"] = prefix
system "make", "install"
end
system bin/"gopass completion bash > bash_completion.bash"
system bin/"gopass completion zsh > zsh_completion.zsh"
bash_completion.install "bash_completion.bash"
zsh_completion.install "zsh_completion.zsh"
test: |
assert_match version.to_s, shell_output("#{bin}/gopass version")
nfpms:
- id: gopass
vendor: Gopass Authors
homepage: "https://www.gopass.pw"
maintainer: "Gopass Authors <[email protected]>"
license: MIT
formats:
- deb
- rpm
dependencies:
- git
- gnupg2
recommends:
- rng-tools
source:
enabled: true
name_template: "{{.ProjectName}}-{{.Version}}"
checksum:
name_template: "{{.ProjectName}}_{{.Version}}_SHA256SUMS"
milestones:
-
repo:
owner: gopasspw
name: gopass
close: true
fail_on_error: false
name_template: "{{ .Major }}.{{ .Minor }}.{{ .Patch }}"