diff --git a/Dockerfile b/Dockerfile index 9f13672..07c0193 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ -FROM gcr.io/kaniko-project/executor:v1.23.0-debug +FROM gcr.io/kaniko-project/executor:v1.23.2-debug COPY build.sh /usr/local/bin/ ENTRYPOINT ["build.sh"] diff --git a/build.sh b/build.sh index ebdf890..e1943bb 100755 --- a/build.sh +++ b/build.sh @@ -13,10 +13,7 @@ cat < /kaniko/.docker/config.json } EOF -if [ -z "$IMAGEAPP" ]; then - REGISTRY="$(echo "$GITHUB_SERVER_URL" | sed 's .*:// ')" - IMAGEAPP="$REGISTRY/$INPUT_IMAGE" -fi +[ -z "$IMAGEAPP" ] && IMAGEAPP="$${REGISTRY#*://}/$INPUT_IMAGE" /kaniko/executor \ --cache="${INPUT_CACHE}" \