cosign-sign/entrypoint.sh
Vojtěch Mareš da0d3229a3
All checks were successful
ci/woodpecker/push/release Pipeline was successful
feat: add first version of cosign-sign plugin
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
2025-09-08 14:52:49 +02:00

8 lines
179 B
Bash
Executable file

#! /bin/sh
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}"