generated from woodpecker-plugins/.plugin-template
refactor: sign multiple images instead of only one
Some checks failed
ci/woodpecker/push/release Pipeline failed
Some checks failed
ci/woodpecker/push/release Pipeline failed
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
parent
0b5f53fe41
commit
a93217ce90
4 changed files with 14 additions and 10 deletions
|
|
@ -1,8 +1,10 @@
|
|||
#! /bin/sh
|
||||
|
||||
if [ -z ${PLUGIN_IMAGE+x} ]; then
|
||||
echo "ERROR: image setting is required."
|
||||
if [ -z ${PLUGIN_IMAGES+x} ]; then
|
||||
echo "ERROR: images setting is required."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cosign sign --key "${PLUGIN_KEY_PATH:-"./cosign.key"}" "${PLUGIN_IMAGE}"
|
||||
echo "${PLUGIN_IMAGES}" | jq '.[]' | while read -r image; do
|
||||
cosign sign --key "${PLUGIN_KEY_PATH:-"./cosign.key"}" "${image}"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue