-
Notifications
You must be signed in to change notification settings - Fork 8
/
.goreleaser.yml
44 lines (38 loc) · 1.12 KB
/
.goreleaser.yml
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
# Our Makefile will automatically add additional settings
# to this builds array (environment variables, flags, ...)
builds:
- id: cmctl
# config the checksum filename
# https://goreleaser.com/customization/checksum
checksum:
name_template: 'checksums.txt'
# creates SBOMs of all archives and the source tarball using syft
# https://goreleaser.com/customization/sbom
sboms:
- artifacts: binary
documents:
- "{{ .ArtifactName }}{{ .ArtifactExt }}.spdx.sbom"
# signs the checksum file
# all files (including the sboms) are included in the checksum, so we don't need to sign each one if we don't want to
# https://goreleaser.com/customization/sign
signs:
- cmd: cosign
signature: "${artifact}.cosign.bundle"
env:
- COSIGN_EXPERIMENTAL=1
args:
- sign-blob
- '--bundle=${signature}'
- '${artifact}'
- "--yes" # needed on cosign 2.0.0+
artifacts: checksum
output: true
archives:
- name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}"
format: binary
- id: tar-gz-archives
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}"
format: tar.gz
release:
draft: true
make_latest: false