-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
387 lines (342 loc) · 9.72 KB
/
.goreleaser.yml
File metadata and controls
387 lines (342 loc) · 9.72 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
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
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
# vim: set ts=2 sw=2 tw=0 fo=jcroql
version: 2
pro: true
# Project configuration
project_name: compozy
# Metadata configuration
metadata:
mod_timestamp: "{{ .CommitTimestamp }}"
license: "BSL-1.1"
homepage: "https://github.com/compozy/compozy"
description: "Next-level Agentic Orchestration Platform"
maintainers:
- "Compozy Team <support@compozy.com>"
# Environment variables
env:
- GO111MODULE=on
- CGO_ENABLED=0
# Git configuration
git:
# What should be used to sort tags when gathering the current and previous
# tags if there are more than one tag in the same commit.
tag_sort: -version:refname
# Build configuration
builds:
- id: compozy
main: ./
binary: compozy
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ignore:
# Skip unsupported combinations
- goos: windows
goarch: arm64
- goos: darwin
goarch: "386"
- goos: darwin
goarch: arm
ldflags:
- -s -w
- -X github.com/compozy/compozy/pkg/version.Version={{.Version}}
- -X github.com/compozy/compozy/pkg/version.CommitHash={{.ShortCommit}}
- -X github.com/compozy/compozy/pkg/version.BuildDate={{.Date}}
env:
- CGO_ENABLED=0
flags:
- -trimpath
mod_timestamp: "{{ .CommitTimestamp }}"
# Archive configuration
archives:
- id: compozy-archive
ids:
- compozy
# Archive name template with conventional architecture naming
name_template: >-
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- with .Arm }}v{{ . }}{{ end }}
# Archive format (defaults to tar.gz, zip for windows)
format_overrides:
- goos: windows
formats:
- zip
# Files to include in archive
files:
- README.md
- LICENSE*
- src: completions/
dst: .
# Wrap in directory
wrap_in_directory: true
# Checksum configuration
checksum:
name_template: "checksums.txt"
algorithm: sha256
# Signing configuration
signs:
- cmd: cosign
certificate: "${artifact}.pem"
args:
- sign-blob
- "--output-certificate=${certificate}"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: checksum
output: true
# Snapshot configuration (for non-tagged builds)
snapshot:
version_template: "0.0.0-{{ .Timestamp }}"
# Source archive configuration
source:
enabled: true
# Changelog configuration
changelog:
use: github
sort: asc
abbrev: 7
# Changelog groups
groups:
- title: "\U0001F389"
regexp: "^.*feat[\\(\\w)]*:+.*$"
order: 0
- title: "\U0001F41B"
regexp: "^.*fix[\\(\\w)]*:+.*$"
order: 1
- title: "⚡"
regexp: "^.*perf[\\(\\w)]*:+.*$"
order: 2
- title: "\U0001F510"
regexp: "^.*security[\\(\\w)]*:+.*$"
order: 3
- title: "\U0001F4DA"
regexp: "^.*docs[\\(\\w)]*:+.*$"
order: 4
- title: "\U0001F527"
regexp: "^.*refactor[\\(\\w)]*:+.*$"
order: 5
- title: "\U0001F4E6"
regexp: "^.*deps[\\(\\w)]*:+.*$"
order: 6
- title: "\U0001F9EA"
regexp: "^.*test[\\(\\w)]*:+.*$"
order: 7
- title: "\U0001F504"
order: 999
# Filters
filters:
exclude:
- "^(build|ci): "
- "^chore: auto-update generated files$"
- "^chore: docs$"
- "^chore: schema update$"
- "^chore: typo$"
- "^chore\\(legal\\): "
- "^chore\\(deps\\): "
- "^docs: update$"
- "^test:"
- "^test\\("
- "merge conflict"
- Merge branch
- Merge pull request
- Merge remote-tracking branch
- go mod tidy
- "^wip "
- "^wip:"
# Release configuration
release:
github:
owner: compozy
name: compozy
name_template: "Release {{ .Version }}"
mode: replace
draft: false
prerelease: auto
header: |
## Compozy {{ .Version }}
Welcome to this new release of Compozy! 🎉
### Installation
#### Binary Download
Download the appropriate binary for your platform from the assets below.
#### Go Install
```bash
go install github.com/compozy/compozy@{{ .Tag }}
```
#### Container Image
```bash
docker pull ghcr.io/compozy/compozy:{{ .Version }}
```
footer: |
### Verification
All release artifacts are signed and can be verified:
#### Checksums
```bash
cosign verify-blob \
--signature checksums.txt.sig \
--certificate checksums.txt.pem \
checksums.txt
```
#### Container Images
```bash
cosign verify ghcr.io/compozy/compozy:{{ .Version }}
```
**Full Changelog**: https://github.com/compozy/compozy/compare/{{ .PreviousTag }}...{{ .Tag }}
---
Thank you to all contributors who made this release possible! 🙏
# Docker configuration
dockers_v2:
- id: compozy-main
ids:
- compozy
dockerfile: ./cluster/compozy.goreleaser.Dockerfile
images:
- ghcr.io/compozy/compozy
tags:
- "{{ .Version }}"
- "latest"
- "{{ .Version }}-amd64"
- "latest-amd64"
- "{{ .Version }}-arm64"
- "latest-arm64"
platforms:
- linux/amd64
- linux/arm64
labels:
org.opencontainers.image.title: "{{ .ProjectName }}"
org.opencontainers.image.description: "Compozy Workflow Orchestration Engine"
org.opencontainers.image.url: "https://github.com/compozy/compozy"
org.opencontainers.image.source: "https://github.com/compozy/compozy"
org.opencontainers.image.version: "{{ .Version }}"
org.opencontainers.image.created: "{{ .Date }}"
org.opencontainers.image.revision: "{{ .FullCommit }}"
org.opencontainers.image.licenses: "BSL-1.1"
org.opencontainers.image.vendor: "Compozy"
extra_files:
- LICENSE
- README.md
- docs
- id: mcp-proxy
ids:
- compozy
dockerfile: ./cluster/mcpproxy.goreleaser.Dockerfile
images:
- ghcr.io/compozy/mcp-proxy
tags:
- "{{ .Version }}"
- "latest"
- "{{ .Version }}-amd64"
- "latest-amd64"
- "{{ .Version }}-arm64"
- "latest-arm64"
platforms:
- linux/amd64
- linux/arm64
labels:
org.opencontainers.image.title: "Compozy MCP Proxy"
org.opencontainers.image.description: "Model Context Protocol Proxy for Compozy"
org.opencontainers.image.url: "https://github.com/compozy/compozy"
org.opencontainers.image.source: "https://github.com/compozy/compozy"
org.opencontainers.image.version: "{{ .Version }}"
org.opencontainers.image.created: "{{ .Date }}"
org.opencontainers.image.revision: "{{ .FullCommit }}"
org.opencontainers.image.licenses: "BSL-1.1"
org.opencontainers.image.vendor: "Compozy"
extra_files:
- README.md
- LICENSE
# Container image signing with cosign
docker_signs:
- cmd: cosign
args:
- "sign"
- "--yes"
- "${artifact}@${digest}"
output: true
# Homebrew cask configuration
homebrew_casks:
- name: compozy
repository:
owner: compozy
name: homebrew-compozy
branch: main
token: "{{ .Env.RELEASE_TOKEN }}"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
commit_msg_template: "Brew cask update for {{ .ProjectName }} version {{ .Tag }}"
directory: Casks
caveats: |
To get started with Compozy, you need to:
1. Set up the required environment variables
2. Configure your first workflow
See https://github.com/compozy/compozy for more information.
homepage: "https://github.com/compozy/compozy"
description: "Next-level Agentic Orchestration Platform"
skip_upload: auto
# NFPM packaging configuration
nfpms:
- id: compozy-packages
package_name: compozy
file_name_template: "{{ .ConventionalFileName }}"
vendor: "Compozy"
homepage: "https://github.com/compozy/compozy"
maintainer: "Compozy Team <support@compozy.com>"
description: "Next-level Agentic Orchestration Platform"
license: "BSL-1.1"
formats:
- apk
- deb
- rpm
- archlinux
rpm:
signature:
key_file: '{{ if ne (index .Env "GPG_KEY_PATH") "" }}{{ .Env.GPG_KEY_PATH }}{{ else }}{{ end }}'
deb:
signature:
key_file: '{{ if ne (index .Env "GPG_KEY_PATH") "" }}{{ .Env.GPG_KEY_PATH }}{{ else }}{{ end }}'
# Before hooks (run before building)
before:
hooks:
- go mod tidy
- go mod download
- rm -rf completions
- mkdir -p completions
- sh -c "go run . completion bash > completions/compozy.bash || echo '# Bash completion' > completions/compozy.bash"
- sh -c "go run . completion zsh > completions/compozy.zsh || echo '# Zsh completion' > completions/compozy.zsh"
- sh -c "go run . completion fish > completions/compozy.fish || echo '# Fish completion' > completions/compozy.fish"
# Software Bill of Materials (SBOM) generation
sboms:
- artifacts: archive
- id: source
artifacts: source
# Nix package configuration
nix:
- name: compozy
repository:
owner: compozy
name: nur
branch: main
token: "{{ .Env.RELEASE_TOKEN }}"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
commit_msg_template: "compozy: {{ .Version }}"
homepage: "https://github.com/compozy/compozy"
description: "Next-level Agentic Orchestration Platform"
license: "bsl11"
npms:
- name: "@compozy/cli"
description: "Next-level Agentic Orchestration Platform"
repository: "git+https://github.com/compozy/compozy.git"
bugs: https://github.com/compozy/compozy/issues
access: public
license: BSL-1.1
homepage: "https://compozy.com"