diff --git a/build.sh b/build.sh index e1943bb..ebdf890 100755 --- a/build.sh +++ b/build.sh @@ -13,7 +13,10 @@ cat < /kaniko/.docker/config.json } EOF -[ -z "$IMAGEAPP" ] && IMAGEAPP="$${REGISTRY#*://}/$INPUT_IMAGE" +if [ -z "$IMAGEAPP" ]; then + REGISTRY="$(echo "$GITHUB_SERVER_URL" | sed 's .*:// ')" + IMAGEAPP="$REGISTRY/$INPUT_IMAGE" +fi /kaniko/executor \ --cache="${INPUT_CACHE}" \