-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
65 lines (65 loc) · 2.01 KB
/
.goreleaser.yaml
File metadata and controls
65 lines (65 loc) · 2.01 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
project_name: toolhive-registry-server
version: 2
# This section defines the build matrix.
builds:
- env:
- GO111MODULE=on
- CGO_ENABLED=0
flags:
- -trimpath
- -tags=netgo
ldflags:
- "-s -w"
- "-X github.com/stacklok/toolhive-registry-server/internal/versions.Version={{ .Env.VERSION }}"
- "-X github.com/stacklok/toolhive-registry-server/internal/versions.Commit={{ .Env.COMMIT }}"
- "-X github.com/stacklok/toolhive-registry-server/internal/versions.BuildDate={{ .Date }}"
- "-X github.com/stacklok/toolhive-registry-server/internal/versions.BuildType=release"
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
main: ./cmd/thv-registry-api
binary: thv-registry-api
# This section defines the release format.
archives:
- formats: [ 'tar.gz' ]
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
formats: [ 'zip' ]
files:
- docs/thv-registry-api/swagger.yaml
- docs/thv-registry-api/swagger.json
# This section defines whether we want to release the source code too.
source:
enabled: true
# This section defines how to generate the changelog
changelog:
sort: asc
use: github
# This section defines for which artifact types to generate SBOMs.
sboms:
- artifacts: archive
# This section defines the release policy.
release:
github:
owner: stacklok
name: toolhive-registry-server
extra_files:
- glob: docs/thv-registry-api/swagger.yaml
- glob: docs/thv-registry-api/swagger.json
# This section defines how and which artifacts we want to sign for the release.
signs:
- cmd: cosign
args:
- "sign-blob"
- "--bundle=${signature}" # cosign v3+: bundles signature and certificate together
- "${artifact}"
- "--yes" # needed on cosign 2.0.0+
artifacts: archive
output: true
signature: "${artifact}.sigstore.json"