fix: bash syntax doesn't work with sh
This commit is contained in:
parent
9c6fbdafc8
commit
b79e752979
5
build.sh
5
build.sh
@ -13,7 +13,10 @@ cat <<EOF > /kaniko/.docker/config.json
|
|||||||
}
|
}
|
||||||
EOF
|
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 \
|
/kaniko/executor \
|
||||||
--cache="${INPUT_CACHE}" \
|
--cache="${INPUT_CACHE}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user