validate images

This commit is contained in:
estebanthi
2026-01-18 11:25:34 +01:00
parent c5563d9dc1
commit 583ae62c3b

View File

@@ -103,6 +103,15 @@ jobs:
run: |
set -euo pipefail
if ! echo "$IMAGES" | jq -e . >/dev/null; then
echo "inputs.images must be valid JSON" >&2
exit 1
fi
if ! echo "$IMAGES" | jq -e 'type == "array"' >/dev/null; then
echo "inputs.images must be a JSON array" >&2
exit 1
fi
SSH_FLAGS=()
if [ -n "${SSH_AUTH_SOCK:-}" ]; then
SSH_FLAGS+=(--ssh default)