Skip to content

Commit b4fa6e3

Browse files
authored
Update goreleaser (#345)
Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
1 parent 19134fd commit b4fa6e3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.goreleaser.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ builds:
2727
main: ./main.go
2828
# This section defines the release format.
2929
archives:
30-
- format: tar.gz # we can use binary, but it seems there's an issue where goreleaser skips the sboms
30+
- formats: [tar.gz] # we can use binary, but it seems there's an issue where goreleaser skips the sboms
3131
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
3232
format_overrides:
3333
- goos: windows
34-
format: zip
34+
formats: [zip]
3535
# This section defines how to release to winget.
3636
# winget:
3737
# - name: frizbee
@@ -85,10 +85,9 @@ signs:
8585
- cmd: cosign
8686
args:
8787
- "sign-blob"
88-
- "--output-signature=${signature}"
89-
- "--output-certificate=${certificate}"
88+
- "--bundle=${signature}" # cosign v3+: bundles signature and certificate together
9089
- "${artifact}"
9190
- "--yes" # needed on cosign 2.0.0+
9291
artifacts: archive
9392
output: true
94-
certificate: '{{ trimsuffix (trimsuffix .Env.artifact ".zip") ".tar.gz" }}.pem'
93+
signature: "${artifact}.sigstore.json"

0 commit comments

Comments
 (0)