Add artifact and image signing (#2547)

Co-authored-by: shaunak_deshmukh <shaunak@infracloud.io>
This commit is contained in:
Shaunak Deshmukh
2022-09-15 19:31:10 +05:30
committed by GitHub
co-authored by shaunak_deshmukh
parent 61f4d4f5ad
commit 58f33d6f6c
3 changed files with 42 additions and 0 deletions
+26
View File
@@ -267,3 +267,29 @@ archives:
checksum:
name_template: "checksums.txt"
algorithm: sha256
# signs the checksum file
# https://goreleaser.com/customization/sign
signs:
- cmd: cosign
artifacts: all
stdin: '{{ .Env.COSIGN_PWD }}'
output: true
args:
- sign-blob
- '--key=cosign.key'
- '--output-certificate=${certificate}'
- '--output-signature=${signature}'
- '${artifact}'
# signs our docker image
# https://goreleaser.com/customization/docker_sign
docker_signs:
- cmd: cosign
artifacts: all
stdin: '{{ .Env.COSIGN_PWD }}'
output: true
args:
- 'sign'
- '--key=cosign.key'
- '${artifact}'