Compare commits

...

2 commits

Author SHA1 Message Date
2c17c2d90c
refactor(entrypoint.sh): use IFS="," for ... instead of jq and while loop
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
2025-09-08 15:53:50 +02:00
0a5171d52a
refactor(Dockerfile): remove jq
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
2025-09-08 15:53:35 +02:00
2 changed files with 3 additions and 13 deletions

View file

@ -1,6 +1,6 @@
FROM alpine:3.22
RUN apk add --no-cache ca-certificates cosign jq
RUN apk add --no-cache ca-certificates cosign
COPY entrypoint.sh /entrypoint.sh

View file

@ -5,17 +5,7 @@ if [ -z ${PLUGIN_IMAGES+x} ]; then
exit 1
fi
echo "==== DEBUG ===="
echo "${PLUGIN_IMAGES}"
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
IFS=","
for image in ${IMAGES}; do
cosign sign --key "${PLUGIN_KEY_PATH:-"./cosign.key"}" "${image}"
done