generated from woodpecker-plugins/.plugin-template
11 lines
218 B
Bash
Executable file
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
|