From 5069e221af88629f8d852a37128ba84d87e4513f Mon Sep 17 00:00:00 2001 From: ange Date: Fri, 29 Nov 2024 05:58:07 +0000 Subject: [PATCH] fix: workdir-path --- entrypoint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index a078358..8025bcf 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,7 @@ #!/bin/sh -ex +#shellcheck disable=SC1091 + +cd "./${INPUT_DOCKERFILE%/*}" [ -f .env ] && . ./.env @@ -20,6 +23,5 @@ fi /kaniko/executor \ --cache="$INPUT_CACHE" \ - --context "${INPUT_DOCKERFILE%/*}" \ - --dockerfile "$INPUT_DOCKERFILE" \ + --dockerfile "${INPUT_DOCKERFILE##*/}" \ --destination "$IMAGEAPP"