cosign-sign/entrypoint.sh
Vojtěch Mareš 2c17c2d90c
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
refactor(entrypoint.sh): use IFS="," for ... instead of jq and while loop
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
2025-09-08 15:53:50 +02:00

11 lines
218 B
Bash
Executable file

#! /bin/sh
if [ -z ${PLUGIN_IMAGES+x} ]; then
echo "ERROR: images setting is required."
exit 1
fi
IFS=","
for image in ${IMAGES}; do
cosign sign --key "${PLUGIN_KEY_PATH:-"./cosign.key"}" "${image}"
done