-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
91 lines (88 loc) · 2.54 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
snapshot:
name_template: "{{ incpatch .Version }}_next"
builds:
- gobinary: "true" # forcing noop builds with coreutils true command
binary: rl
no_main_check: true
goos:
- darwin
- linux
goarch:
- amd64
- arm64
hooks:
post:
# trimsuffix is required to strip the suffix that the rust bins don't contain
# https://goreleaser.com/customization/builds/#why-is-there-a-_v1-suffix-on-amd64-builds
- cmd: 'fd -1 {{trimsuffix .Target "_v1"}} out/bin/ -x bash -c "mkdir -p {{ dir .Path }} && cp {} {{.Path}}"'
universal_binaries:
- replace: false
source:
enabled: true
rlcp: true
name_template: "{{ .ProjectName }}-source"
sboms:
- artifacts: source
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
archives:
- format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
rlcp: true
nfpms:
- maintainer: Tobias Brumhard <[email protected]>
description: &desc Inspect and dump OCI images
homepage: &homepage https://github.com/brumhard/{{ .ProjectName }}
file_name_template: "{{ .PackageName }}_{{ .Os }}_{{ .Arch }}"
license: &license "MIT"
formats:
- deb
- rpm
- apk
brews:
- description: *desc
homepage: *homepage
license: *license
tap:
owner: brumhard
name: tap
# https://goreleaser.com/errors/resource-not-accessible-by-integration/#2-use-a-personal-access-token-pat-specifically-for-the-integration
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
install: |
bin.install "rl"
# signs:
# # keyless signing with cosign and github actions token
# # https://github.com/sigstore/cosign/blob/cc969943428c109904d6a1888eb44c1576769cbd/.goreleaser.yml#L165
# - cmd: cosign
# signature: "${artifact}-keyless.sig"
# certificate: "${artifact}-keyless.pem"
# args:
# - sign-blob
# - --output-signature=${artifact}-keyless.sig
# - --output-certificate=${artifact}-keyless.pem
# - ${artifact}
# - --yes
# artifacts: all
release:
mode: replace
footer: |
**Full Changelog**: https://github.com/brumhard/{{ .ProjectName }}/compare/{{ .PreviousTag }}...{{ .Tag }}
changelog:
sort: asc
use: github
groups:
- title: New Features and updates
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: Bug fixes
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: Documentation updates
regexp: "^.*docs[(\\w)]*:+.*$"
order: 20
- title: Other Work
order: 999
filters:
exclude:
- "^refactor"
- "^chore"