-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
152 lines (139 loc) · 3.25 KB
/
.goreleaser.yaml
File metadata and controls
152 lines (139 loc) · 3.25 KB
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
---
version: 2
project_name: commit
before:
hooks:
- make setup
builds:
- id: commit
main: .
binary: commit
env:
- CGO_ENABLED=0
- SOURCE_DATE_EPOCH=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -v
- -trimpath
- -buildvcs=false
ldflags:
- -s -w
- -X github.com/hasansino/commit/internal/version.xBuildVersion={{ .Version }}
archives:
- id: commit
name_template: >-
{{ .ProjectName }}_ {{- .Version }}_ {{- if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_ {{- if eq .Arch "amd64"
}}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }}
formats:
- tar.gz
format_overrides:
- goos: windows
formats:
- zip
files:
- LICENSE
- README.md
nfpms:
- id: commit-packages
package_name: commit
vendor: hasansino
homepage: https://github.com/hasansino/commit
maintainer: hasansino <hasansino@users.noreply.github.com>
description: Commit helper tool
license: MIT
formats:
- deb
- rpm
- apk
dependencies:
- git
recommends:
- golang
section: utils
priority: optional
file_name_template: >-
{{ .PackageName }}_ {{- .Version }}_ {{- if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_ {{- if eq .Arch "amd64"
}}x86_64 {{- else if eq .Arch "386" }}i386 {{- else if eq .Arch "arm64" }}aarch64 {{- else }}{{ .Arch }}{{ end }}
contents:
- src: LICENSE
dst: /usr/share/licenses/commit/LICENSE
- src: README.md
dst: /usr/share/doc/commit/README.md
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
rpm:
group: Applications/System
compression: xz
apk:
signature:
key_file: ""
checksum:
name_template: 'checksums.txt'
algorithm: sha256
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'
- '^chore:'
- Merge pull request
- Merge branch
groups:
- title: 'Changes'
order: 999
release:
github:
owner: hasansino
name: commit
prerelease: auto
make_latest: true
name_template: "{{.ProjectName}} v{{.Version}}"
# generate SBOMs for archives
sboms:
- artifacts: archive
# sign checksums.txt
signs:
- cmd: cosign
certificate: ""
args:
- "sign-blob"
- "--output-signature=${signature}"
- "--output-certificate=${certificate}"
- "${artifact}"
- "--yes"
artifacts: checksum
output: true
brews:
- name: commit
ids:
- commit
license: "MIT"
directory: .
repository:
owner: hasansino
name: homebrew-commit
branch: master
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/hasansino/commit"
description: "Commit helper tool"
dependencies:
- name: git
test: |-
system "#{bin}/commit", "--help"