cosign-sign/entrypoint.sh
Vojtěch Mareš a93217ce90
Some checks failed
ci/woodpecker/push/release Pipeline failed
refactor: sign multiple images instead of only one
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
2025-09-08 15:21:52 +02:00

10 lines
244 B
Bash
Executable file

#! /bin/sh
if [ -z ${PLUGIN_IMAGES+x} ]; then
echo "ERROR: images setting is required."
exit 1
fi
echo "${PLUGIN_IMAGES}" | jq '.[]' | while read -r image; do
cosign sign --key "${PLUGIN_KEY_PATH:-"./cosign.key"}" "${image}"
done