-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
233 lines (214 loc) · 6.14 KB
/
.goreleaser.yaml
File metadata and controls
233 lines (214 loc) · 6.14 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
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
version: 2
project_name: quickstart
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
universal_binaries:
- replace: false
builds:
- id: "quickstart-cli-build"
binary: "quickstart"
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
goarm:
- "6"
- "7"
flags:
- -trimpath
ldflags:
- -s -w
- -X {{.ModulePath}}/app.Version={{.Version}}
- -X {{.ModulePath}}/app.CommitHash={{.ShortCommit}}
- -X {{.ModulePath}}/app.BuildDate={{.CommitDate}}
- -X {{.ModulePath}}/app.Portable=false
mod_timestamp: "{{ .CommitTimestamp }}"
- id: "quickstart-portable-build"
binary: "quickstart-portable"
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
goarm:
- "6"
- "7"
flags:
- -trimpath
ldflags:
- -s -w
- -X {{.ModulePath}}/app.Version={{.Version}}
- -X {{.ModulePath}}/app.CommitHash={{.ShortCommit}}
- -X {{.ModulePath}}/app.BuildDate={{.CommitDate}}
- -X {{.ModulePath}}/app.Portable=true
mod_timestamp: "{{ .CommitTimestamp }}"
archives:
- id: "quickstart-cli-archive"
formats: ['tar.gz']
ids:
- quickstart-cli-build
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
formats: [zip]
files:
- README.md
- LICENSE
builds_info:
group: root
owner: root
mtime: "{{ .CommitDate }}"
- id: "quickstart-portable-archive"
formats: ['tar.gz']
ids:
- quickstart-portable-build
name_template: "{{ .ProjectName }}-portable_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
formats: [zip]
files:
- README.md
- LICENSE
builds_info:
group: root
owner: root
mtime: "{{ .CommitDate }}"
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
algorithm: sha256
release:
github:
owner: TPIsoftwareOSPO
name: quickstart
name_template: "Release {{ .Tag }}"
homebrew_casks:
- name: quickstart
repository:
owner: TPIsoftwareOSPO
name: homebrew-tap
homepage: "https://github.com/TPIsoftwareOSPO/quickstart"
description: "Designed to orchestrate and execute a series of commands based on a declarative YAML configuration file."
ids:
- quickstart-cli-archive
scoops:
- repository:
owner: TPIsoftwareOSPO
name: scoop-bucket
name: quickstart
directory: bucket
homepage: "https://github.com/TPIsoftwareOSPO/quickstart"
description: "A command orchestration tool for declarative task execution."
ids:
- quickstart-cli-archive
dockers:
- id: "quickstart-docker-amd64"
ids:
- quickstart-cli-build
use: buildx
goarch: amd64
image_templates:
- "tpisoftwareopensource/quickstart:{{ .Version }}-amd64"
dockerfile: Dockerfile
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.description=Designed to orchestrate and execute a series of commands based on a declarative YAML configuration file."
- "--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}}"
extra_files:
- README.md
- LICENSE
- id: "quickstart-docker-arm64"
use: buildx
goarch: arm64
image_templates:
- "tpisoftwareopensource/quickstart:{{ .Version }}-arm64"
dockerfile: Dockerfile
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.description=Designed to orchestrate and execute a series of commands based on a declarative YAML configuration file."
- "--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}}"
extra_files:
- README.md
- LICENSE
docker_manifests:
- name_template: "tpisoftwareopensource/quickstart:{{ .Version }}"
image_templates:
- "tpisoftwareopensource/quickstart:{{ .Version }}-amd64"
- "tpisoftwareopensource/quickstart:{{ .Version }}-arm64"
- name_template: "tpisoftwareopensource/quickstart:latest"
image_templates:
- "tpisoftwareopensource/quickstart:{{ .Version }}-amd64"
- "tpisoftwareopensource/quickstart:{{ .Version }}-arm64"
snapshot:
version_template: "{{ .Version }}-snapshot"
gomod:
proxy: true
report_sizes: true
sboms:
- id: quickstart-sbom
disable: false
ids:
- quickstart-cli-archive
- quickstart-portable-archive
documents:
- "${artifact}.sbom.json"
changelog:
sort: asc
use: github
format: "{{ .SHA }}: {{ .Message }}{{ with .AuthorUsername }} (@{{ . }}){{ end }}"
filters:
exclude:
- "^test:"
- "^test\\("
- "^chore: update$"
- "^chore: docs$"
- "^docs: update$"
- "^chore: schema$"
- "^chore: typo$"
- "^chore: auto-update generated files$"
- "^chore: update schema$"
- "^chore: schema update$"
- "^chore\\(deps\\): "
- "^(build|ci): "
- "merge conflict"
- "merge conflict"
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
groups:
- title: "New Features"
regexp: '^.*?feat(\(.+\))??!?:.+$'
order: 100
- title: "Security updates"
regexp: '^.*?sec(\(.+\))??!?:.+$'
order: 150
- title: "Bug fixes"
regexp: '^.*?(fix|refactor)(\(.+\))??!?:.+$'
order: 200
- title: "Documentation updates"
regexp: ^.*?docs?(\(.+\))??!?:.+$
order: 400
- title: Other work
order: 9999