From 50c62ced52ee0bdd94dc59881268ac5042890147 Mon Sep 17 00:00:00 2001 From: ange Date: Fri, 29 Nov 2024 04:34:56 +0000 Subject: [PATCH] fix: move logic to per-repo conf --- entrypoint.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 632bbbd..a078358 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,10 +15,7 @@ EOF if [ -z "$IMAGEAPP" ]; then REGISTRY="$(echo "$GITHUB_SERVER_URL" | sed 's .*:// ')" - printf '%s' "$INPUT_IMAGE" - printf '%s' "$INPUT_IMAGE" | tr '[:upper:]' '[:lower:]' | tr -c '[:lower:][:digit:]-/:_' _ - printf '%s' "$INPUT_IMAGE" | tr '[:upper:]' '[:lower:]' | tr -c '[:lower:][:digit:]-:_' _ - IMAGEAPP="$REGISTRY/$(printf '%s' "$INPUT_IMAGE" | tr '[:upper:]' '[:lower:]' | tr -c '[:lower:][:digit:]-/:_' _)" + IMAGEAPP="$REGISTRY/$INPUT_IMAGE" fi /kaniko/executor \