feat: add first version of cosign-sign plugin
All checks were successful
ci/woodpecker/push/release Pipeline was successful

Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
Vojtěch Mareš 2025-09-08 14:52:49 +02:00
parent c17786a62b
commit da0d3229a3
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
4 changed files with 40 additions and 5 deletions

View file

@ -1,3 +1,8 @@
#! /bin/sh
echo "Hello from plugin, I think you forgot to write me!"
if [ -z ${PLUGIN_IMAGE+x} ]; then
echo "ERROR: image setting is required."
exit 1
fi
cosign sign --key "${PLUGIN_KEY_PATH:-"./cosign.key"}" "${PLUGIN_IMAGE}"