Fix goreleaser snapshot signing creating missing bundle file

When running in snapshot mode, the signing step skips cosign but does
not create the expected .bundle file. The checksum step then fails
because it cannot find the signature artifact. Touch the file so the
pipeline can continue.

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-03-30 13:55:11 +02:00
parent 3528e5d1a0
commit 454e6a52d4

View File

@@ -142,6 +142,7 @@ signs:
- |
if [ "{{ .IsSnapshot }}" = "true" ]; then
echo "Skipping signing (snapshot: {{ .IsSnapshot }})"
touch "${signature}"
else
cosign sign-blob --bundle="${signature}" "${artifact}" --yes
fi