Skip to content

Commit

Permalink
fix: release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mahendraintelops committed Nov 26, 2023
1 parent 18bd214 commit 279de73
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ before:
- ls -al .
- ls -R
builds:
- hooks:
post:
- sh -c "COSIGN_PASSWORD=$COSIGN_PWD cosign sign-blob --key cosign.key --output-signature dist/{{ .ProjectName }}_{{ .Version }}_{{ .Target }}.sig {{ .Path }}"
- env:
- CGO_ENABLED=0
goos:
Expand All @@ -40,6 +43,12 @@ archives:
format_overrides:
- goos: windows
format: zip
- files:
- dist/*.sig
# add to the release directly:
release:
extra_files:
- glob: dist/*.sig

changelog:
sort: asc
Expand All @@ -57,15 +66,3 @@ nfpms:
formats:
- rpm
- deb

signs:
- cmd: cosign
stdin: '{{ .Env.COSIGN_PWD }}'
args:
- "sign-blob"
- "--key=cosign.key"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes" # needed on cosign 2.0.0+
artifacts: all

0 comments on commit 279de73

Please sign in to comment.