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"