fix: invalid chars in image name

This commit is contained in:
ange 2024-11-28 03:54:39 +00:00
parent b79e752979
commit 4ed1549a6d
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
FROM gcr.io/kaniko-project/executor:v1.23.2-debug
COPY build.sh /usr/local/bin/
ENTRYPOINT ["build.sh"]
COPY entrypoint.sh /usr/local/bin/
ENTRYPOINT ["entrypoint.sh"]

View File

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