-
Notifications
You must be signed in to change notification settings - Fork 493
/
.goreleaser.yaml
331 lines (313 loc) · 9.21 KB
/
.goreleaser.yaml
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
version: 2
project_name: chezmoi
before:
hooks:
- go run assets/scripts/generate-commit.go -o COMMIT
- go mod download all
builds:
- id: chezmoi-cgo-glibc
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
ldflags:
- -s
- -w
- -X main.version={{ .Version }}
- -X main.commit={{ .Commit }}
- -X main.date={{ .Date }}
- -X main.builtBy=goreleaser
- id: chezmoi-cgo-musl
env:
- CC=/usr/bin/musl-gcc
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
ldflags:
- -s
- -w
- -X main.version={{ .Version }}
- -X main.commit={{ .Commit }}
- -X main.date={{ .Date }}
- -X main.builtBy=goreleaser
- -linkmode external
- --extldflags "-static"
- id: chezmoi-nocgo
env:
- CGO_ENABLED=0
goos:
- android
- darwin
- freebsd
- linux
- openbsd
- windows
goarch:
- '386'
- amd64
- arm
- arm64
- loong64
- mips64
- mips64le
- ppc64
- ppc64le
- riscv64
- s390x
goarm:
- ''
ldflags:
- -s
- -w
- -X main.version={{ .Version }}
- -X main.commit={{ .Commit }}
- -X main.date={{ .Date }}
- -X main.builtBy=goreleaser
ignore:
- goos: android
goarch: '386'
- goos: android
goarch: amd64
- goos: android
goarch: arm
- goos: darwin
goarch: '386'
- goos: linux
goarch: amd64
archives:
- builds:
- chezmoi-cgo-glibc # Required for chezmoi upgrade for versions <= 2.0.5
- chezmoi-nocgo
files:
- LICENSE
- README.md
- completions/*
name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "386" }}i386
{{- else if eq .Arch "mips64" }}mips64_hardfloat
{{- else if eq .Arch "mips64le" }}mips64le_hardfloat
{{- else }}{{ .Arch }}{{ end -}}
format_overrides:
- goos: windows
format: zip
- id: glibc
builds:
- chezmoi-cgo-glibc
files:
- LICENSE
- README.md
- completions/*
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}-glibc_{{ .Arch }}'
- id: musl
builds:
- chezmoi-cgo-musl
files:
- LICENSE
- README.md
- completions/*
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}-musl_{{ .Arch }}'
changelog:
groups:
- title: Features
regexp: ^.*?feat(\([[:word:]]+\))??!?:.+$
order: 0
- title: Fixes
regexp: ^.*?fix(\([[:word:]]+\))??!?:.+$
order: 1
- title: Documentation updates
regexp: ^.*?docs?(\([[:word:]]+\))??!?:.+$
order: 2
- title: Other
order: 999
filters:
exclude:
- ^.*?chore(\(.*\))??!?:.+$
checksum:
extra_files:
- glob: ./dist/chezmoi-nocgo_darwin_amd64_v1/chezmoi
name_template: chezmoi-darwin-amd64
- glob: ./dist/chezmoi-nocgo_darwin_arm64_v8.0/chezmoi
name_template: chezmoi-darwin-arm64
- glob: ./dist/chezmoi-cgo-glibc_linux_amd64_v1/chezmoi
name_template: chezmoi-linux-amd64
- glob: ./dist/chezmoi-cgo-musl_linux_amd64_v1/chezmoi
name_template: chezmoi-linux-amd64-musl
- glob: ./dist/chezmoi-nocgo_windows_amd64_v1/chezmoi.exe
name_template: chezmoi-windows-amd64.exe
nfpms:
- builds:
- chezmoi-cgo-glibc
- chezmoi-nocgo
vendor: Tom Payne <[email protected]>
homepage: https://chezmoi.io/
maintainer: Tom Payne <[email protected]>
description: Manage your dotfiles across multiple diverse machines, securely.
license: MIT
formats:
- archlinux
- deb
- rpm
dependencies:
- git
bindir: /usr/bin
overrides:
deb:
file_name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "386" }}i386
{{- else if eq .Arch "arm" }}armel
{{- else }}{{ .Arch }}{{ end -}}
contents:
- src: completions/chezmoi-completion.bash
dst: /usr/share/bash-completion/completions/chezmoi
- src: completions/chezmoi.fish
dst: /usr/share/fish/vendor_completions.d/chezmoi.fish
- src: completions/chezmoi.zsh
dst: /usr/share/zsh/vendor-completions/_chezmoi
rpm:
file_name_template: >-
{{- .ProjectName }}-
{{- .Version }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i686
{{- else if eq .Arch "arm" }}armhfp
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end -}}
contents:
- src: completions/chezmoi-completion.bash
dst: /usr/share/bash-completion/completions/chezmoi
- src: completions/chezmoi.fish
dst: /usr/share/fish/vendor_completions.d/chezmoi.fish
- src: completions/chezmoi.zsh
dst: /usr/share/zsh/site-functions/_chezmoi
- id: apks
builds:
- chezmoi-cgo-musl
- chezmoi-nocgo
vendor: Tom Payne <[email protected]>
homepage: https://chezmoi.io/
maintainer: Tom Payne <[email protected]>
description: Manage your dotfiles across multiple diverse machines, securely.
license: MIT
formats:
- apk
bindir: /usr/bin
chocolateys:
- owners: twpayne
authors: Tom Payne
project_url: https://chezmoi.io
url_template: https://github.com/twpayne/chezmoi/releases/download/v{{ .Version }}/{{ .ArtifactName }}
icon_url: https://github.com/twpayne/chezmoi/raw/master/assets/images/logo-144px.png
copyright: Copyright (c) 2018-{{ .Now.Format "2006" }} Tom Payne
license_url: https://github.com/twpayne/chezmoi/blob/master/LICENSE
project_source_url: https://github.com/twpayne/chezmoi
docs_url: https://chezmoi.io
bug_tracker_url: https://github.com/twpayne/chezmoi/issues
tags: configuration dotfile dotfiles
summary: Manage your dotfiles across multiple diverse machines, securely.
description: |
## What does chezmoi do?
chezmoi helps you manage your personal configuration files (dotfiles, like `~/.gitconfig`) across multiple machines.
chezmoi is helpful if you have spent time customizing the tools you use (e.g. shells, editors, and version control systems) and want to keep machines running different accounts (e.g. home and work) and/or different operating systems (e.g. Linux, macOS, and Windows) in sync, while still being able to easily cope with differences from machine to machine.
chezmoi scales from the trivial (e.g. copying a few dotfiles onto a Raspberry Pi, development container, or virtual machine) to complex long-lived multi-machine development environments (e.g. keeping any number of home and work, Linux, macOS, and Windows machines in sync). In all cases you only need to maintain a single source of truth (a single branch in git) and getting started only requires adding a single binary to your machine (which you can do with `curl`, `wget`, or `scp`).
chezmoi has strong support for security, allowing you to manage secrets (e.g. passwords, access tokens, and private keys) securely and seamlessly using a password manager and/or encrypt whole files with your favorite encryption tool.
release_notes: '{{ .Changelog }}'
api_key: '{{ .Env.CHOCOLATEY_API_KEY }}'
release:
extra_files:
- glob: ./assets/cosign/cosign.pub
name_template: chezmoi_cosign.pub
- glob: ./dist/chezmoi-nocgo_darwin_amd64_v1/chezmoi
name_template: chezmoi-darwin-amd64
- glob: ./dist/chezmoi-nocgo_darwin_arm64_v8.0/chezmoi
name_template: chezmoi-darwin-arm64
- glob: ./dist/chezmoi-cgo-glibc_linux_amd64_v1/chezmoi
name_template: chezmoi-linux-amd64
- glob: ./dist/chezmoi-cgo-musl_linux_amd64_v1/chezmoi
name_template: chezmoi-linux-amd64-musl
- glob: ./dist/chezmoi-nocgo_windows_amd64_v1/chezmoi.exe
name_template: chezmoi-windows-amd64.exe
scoops:
- repository:
owner: twpayne
name: scoop-bucket
token: '{{ .Env.SCOOP_GITHUB_TOKEN }}'
commit_author:
name: Tom Payne
email: [email protected]
homepage: https://chezmoi.io
description: Manage your dotfiles across multiple diverse machines, securely.
license: MIT
signs:
- cmd: cosign
stdin: '{{ .Env.COSIGN_PWD }}'
args:
- sign-blob
- --key=assets/cosign/cosign.key
- --output-signature=${signature}
- --yes
- ${artifact}
artifacts: checksum
snapcrafts:
- builds:
- chezmoi-cgo-glibc
- chezmoi-nocgo
summary: Manage your dotfiles across multiple diverse machines, securely.
description: Manage your dotfiles across multiple diverse machines, securely.
publish: true
grade: stable
confinement: classic
license: MIT
apps:
chezmoi:
command: chezmoi
completer: completions/chezmoi-completion.bash
source:
enabled: true
prefix_template: '{{ .ProjectName }}-{{ .Version }}/'
files:
- COMMIT
winget:
- name: chezmoi
publisher: twpayne
publisher_url: https://github.com/twpayne
short_description: Manage your dotfiles across multiple diverse machines, securely.
license: MIT
commit_author:
name: Tom Payne
email: [email protected]
homepage: https://chezmoi.io
license_url: https://github.com/twpayne/chezmoi/blob/master/LICENSE
copyright: Copyright (c) 2018-{{ .Now.Format "2006" }} Tom Payne
release_notes: '{{ .Changelog }}'
release_notes_url: https://github.com/twpayne/chezmoi/releases/tag/{{ .Tag }}
tags:
- cli
- configuration
- dotbot
- dotfile
- dotfiles
- stow
- yadm
author: Tom Payne
publisher_support_url: https://github.com/twpayne/chezmoi/issues
repository:
owner: twpayne
name: winget-pkgs
branch: chezmoi-{{ .Version }}
token: '{{ .Env.WINGET_GITHUB_TOKEN }}'
pull_request:
enabled: true
base:
owner: microsoft
name: winget-pkgs
branch: master