-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yaml
322 lines (296 loc) · 9.5 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=jcroql
version: 1
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
- ./scripts/completions.sh
- ./scripts/manpages.sh
snapshot:
name_template: "{{ incpatch .Version }}-next"
report_sizes: true
metadata:
mod_timestamp: "{{ .CommitTimestamp }}"
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- "386"
- amd64
- arm
- arm64
- ppc64
goarm:
- "7"
ignore:
- goos: windows
goarch: arm
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s -w -X {{.ModulePath}}/cmd.version={{.Version}} -X {{.ModulePath}}/cmd.commit={{.Commit}} -X {{.ModulePath}}/cmd.date={{ .CommitDate }} -X {{.ModulePath}}/cmd.treeState={{ .IsGitDirty }}
universal_binaries:
- replace: false
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
use: github
groups:
- title: "New Features"
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: "Security updates"
regexp: '^.*?sec(\([[:word:]]+\))??!?:.+$'
order: 150
- title: "Bug fixes"
regexp: '^.*?(fix|refactor)(\([[:word:]]+\))??!?:.+$'
order: 200
- title: Dependency updates
regexp: '^.*?(feat|fix|chore)\(deps\)!?:.+$'
order: 300
- title: "Documentation updates"
regexp: ^.*?docs?(\([[:word:]]+\))??!?:.+$
order: 400
- title: "Build process updates"
regexp: ^.*?(build|ci)(\([[:word:]]+\))??!?:.+$
order: 400
- title: Other work
order: 9999
dockers:
- image_templates:
- "ghcr.io/jippi/dottie:v{{ .Version }}-amd64"
dockerfile: Dockerfile.release
use: buildx
build_flag_templates:
- "--pull"
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/jippi/dottie/main/README.md"
- '--label=io.artifacthub.package.maintainers=[{"name":"Christian Winther","email":"[email protected]"}]'
- "--label=io.artifacthub.package.license=MIT"
- "--label=org.opencontainers.image.description=Easy .env files"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
- image_templates:
- "ghcr.io/jippi/dottie:v{{ .Version }}-arm64"
dockerfile: Dockerfile.release
use: buildx
build_flag_templates:
- "--pull"
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/jippi/dottie/main/README.md"
- '--label=io.artifacthub.package.maintainers=[{"name":"Christian Winther","email":"[email protected]"}]'
- "--label=io.artifacthub.package.license=MIT"
- "--label=org.opencontainers.image.description=Easy .env files"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/arm64"
goarch: arm64
docker_manifests:
- name_template: "ghcr.io/jippi/dottie:v{{ .Version }}"
image_templates:
- "ghcr.io/jippi/dottie:v{{ .Version }}-amd64"
- "ghcr.io/jippi/dottie:v{{ .Version }}-arm64"
- name_template: "{{ if not .IsNightly }}ghcr.io/jippi/dottie:latest{{ end }}"
image_templates:
- "ghcr.io/jippi/dottie:v{{ .Version }}-amd64"
- "ghcr.io/jippi/dottie:v{{ .Version }}-arm64"
- name_template: "{{ if .IsNightly }}ghcr.io/jippi/dottie:nightly{{ end }}"
image_templates:
- "ghcr.io/jippi/dottie:v{{ .Version }}-amd64"
- "ghcr.io/jippi/dottie:v{{ .Version }}-arm64"
archives:
- name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
format_overrides:
- goos: windows
format: zip
builds_info:
group: root
owner: root
files:
- README.md
- LICENSE
- completions/*
- manpages/*
brews:
- repository:
owner: jippi
name: homebrew-tap
directory: Formula
goarm: "7"
homepage: https://github.com/jippi/dottie
description: Makes working with .env files easy
license: MIT
test: |
system "#{bin}/dottie -v"
dependencies: []
extra_install: |-
bash_completion.install "completions/dottie.bash" => "dottie"
zsh_completion.install "completions/dottie.zsh" => "_dottie"
fish_completion.install "completions/dottie.fish"
man1.install "manpages/dottie.1.gz"
aurs:
- homepage: https://github.com/jippi/dottie
description: Makes working with .env files easy
maintainers:
- "Christian Winther <dottie at jippi dot dev>"
license: MIT
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://[email protected]/dottie-bin.git"
package: |-
# bin
install -Dm755 "./dottie" "${pkgdir}/usr/bin/dottie"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/dottie/LICENSE"
# completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
install -Dm644 "./completions/dottie.bash" "${pkgdir}/usr/share/bash-completion/completions/dottie"
install -Dm644 "./completions/dottie.zsh" "${pkgdir}/usr/share/zsh/site-functions/_dottie"
install -Dm644 "./completions/dottie.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/dottie.fish"
# man pages
install -Dm644 "./manpages/dottie.1.gz" "${pkgdir}/usr/share/man/man1/dottie.1.gz"
scoops:
- repository:
owner: jippi
name: scoop-bucket
directory: bucket
homepage: https://github.com/jippi/dottie
description: Make working with .env files easier
license: MIT
nfpms:
- id: packages_for_gemfury
formats:
- deb
- rpm
file_name_template: "{{ .ConventionalFileName }}"
homepage: https://github.com/jippi/dottie
description: |-
Make working with .env files easier
maintainer: Christian Winther <[email protected]>
license: MIT
vendor: dottie
bindir: /usr/bin
section: utils
contents:
- src: ./completions/dottie.bash
dst: /usr/share/bash-completion/completions/dottie
file_info:
mode: 0644
- src: ./completions/dottie.fish
dst: /usr/share/fish/vendor_completions.d/dottie.fish
file_info:
mode: 0644
- src: ./completions/dottie.zsh
dst: /usr/share/zsh/vendor-completions/_dottie
file_info:
mode: 0644
- src: ./manpages/dottie.1.gz
dst: /usr/share/man/man1/dottie.1.gz
file_info:
mode: 0644
- src: ./LICENSE
dst: /usr/share/doc/dottie/copyright
file_info:
mode: 0644
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
- id: other_packages
formats:
- apk
- archlinux
file_name_template: "{{ .ConventionalFileName }}"
homepage: https://github.com/jippi/dottie
description: |-
Make working with .env files easier
maintainer: Christian Winther <[email protected]>
license: MIT
vendor: dottie
bindir: /usr/bin
section: utils
contents:
- src: ./completions/dottie.bash
dst: /usr/share/bash-completion/completions/dottie
file_info:
mode: 0644
- src: ./completions/dottie.fish
dst: /usr/share/fish/vendor_completions.d/dottie.fish
file_info:
mode: 0644
- src: ./completions/dottie.zsh
dst: /usr/share/zsh/vendor-completions/_dottie
file_info:
mode: 0644
- src: ./manpages/dottie.1.gz
dst: /usr/share/man/man1/dottie.1.gz
file_info:
mode: 0644
- src: ./LICENSE
dst: /usr/share/doc/dottie/copyright
file_info:
mode: 0644
snapcrafts:
- name_template: "{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
title: Dottie
summary: Make .env file management easier
description: |
Make working with .env files easier
publish: true
license: MIT
grade: stable
disable: "{{ if .IsNightly }}true{{ end }}"
sboms:
- artifacts: archive
signs:
- cmd: cosign
certificate: "${artifact}.pem"
output: true
artifacts: checksum
args:
- sign-blob
- "--output-certificate=${certificate}"
- "--output-signature=${signature}"
- "${artifact}"
- --yes
docker_signs:
- cmd: cosign
artifacts: manifests
output: true
args:
- "sign"
- "${artifact}@${digest}"
- --yes
release:
name_template: "v{{ .Version }}"
prerelease: "auto"
make_latest: true
mode: append
footer: |
**Full Changelog**: https://github.com/jippi/dottie/compare/{{ .PreviousTag }}...{{ if .IsNightly }}nightly{{ else }}{{ .Tag }}{{ end }}
publishers:
- name: gemfury
dir: "{{ dir .ArtifactPath }}"
ids:
- packages_for_gemfury
cmd: curl -s -F p1=@{{ .ArtifactName }} https://{{ .Env.FURY_PUSH_TOKEN }}@push.fury.io/jippi/