generated from woodpecker-plugins/.plugin-template
refactor(entrypoint.sh): use IFS="," for ... instead of jq and while loop
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
parent
0a5171d52a
commit
2c17c2d90c
1 changed files with 2 additions and 12 deletions
|
|
@ -5,17 +5,7 @@ if [ -z ${PLUGIN_IMAGES+x} ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "==== DEBUG ===="
|
IFS=","
|
||||||
echo "${PLUGIN_IMAGES}"
|
for image in ${IMAGES}; do
|
||||||
echo
|
|
||||||
echo "jq '.'"
|
|
||||||
echo "${PLUGIN_IMAGES}" | jq '.'
|
|
||||||
echo
|
|
||||||
echo "jq '.[]'"
|
|
||||||
echo "${PLUGIN_IMAGES}" | jq '.[]'
|
|
||||||
echo
|
|
||||||
echo "==== DEBUG ===="
|
|
||||||
|
|
||||||
echo "${PLUGIN_IMAGES}" | jq --raw-output '.[]' | while read -r image; do
|
|
||||||
cosign sign --key "${PLUGIN_KEY_PATH:-"./cosign.key"}" "${image}"
|
cosign sign --key "${PLUGIN_KEY_PATH:-"./cosign.key"}" "${image}"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue