release: sign checksum file and images with cosign

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
Hidde Beydals 2023-07-31 00:05:46 +02:00
Родитель b5b37604ac
Коммит 138d9fee8e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 979F380FC2341744
1 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

@ -113,6 +113,18 @@ sboms:
documents:
- "${artifact}.spdx.sbom.json"
# xref: https://goreleaser.com/customization/sign/
signs:
- cmd: cosign
certificate: "${artifact}.pem"
artifacts: checksum
args:
- "sign-blob"
- "--output-certificate=${certificate}"
- "--output-signature=${signature}"
- '${artifact}'
- "--yes"
# xref: https://goreleaser.com/customization/docker/
dockers:
- image_templates:
@ -194,3 +206,13 @@ docker_manifests:
image_templates:
- 'getsops/sops:{{ .Version }}-alpine-amd64'
- 'getsops/sops:{{ .Version }}-alpine-arm64'
# xref: https://goreleaser.com/customization/docker_sign/
docker_signs:
- cmd: cosign
artifacts: all
output: true
args:
- "sign"
- "${artifact}@${digest}"
- "--yes"