fix: allow / in image name

This commit is contained in:
ange 2024-11-28 03:58:54 +00:00
parent 4ed1549a6d
commit d0542d2f76
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -15,7 +15,7 @@ EOF
if [ -z "$IMAGEAPP" ]; then
REGISTRY="$(echo "$GITHUB_SERVER_URL" | sed 's .*:// ')"
IMAGEAPP="$REGISTRY/$(printf '%s' "$INPUT_IMAGE" | tr '[:upper:]' '[:lower:]' | tr -c '[:lower:][:digit:]-:_' _)"
IMAGEAPP="$REGISTRY/$(printf '%s' "$INPUT_IMAGE" | tr '[:upper:]' '[:lower:]' | tr -c '[:lower:][:digit:]-/:_' _)"
fi
/kaniko/executor \