From 4ed1549a6d724d5a80386b86095929224f38d106 Mon Sep 17 00:00:00 2001 From: ange Date: Thu, 28 Nov 2024 03:54:39 +0000 Subject: [PATCH] fix: invalid chars in image name --- Dockerfile | 4 ++-- build.sh => entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename build.sh => entrypoint.sh (79%) diff --git a/Dockerfile b/Dockerfile index 07c0193..802db5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/build.sh b/entrypoint.sh similarity index 79% rename from build.sh rename to entrypoint.sh index ebdf890..fb6f95a 100755 --- a/build.sh +++ b/entrypoint.sh @@ -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 \