Add Ability To Skip Push
This adds the ability to build the image without pushing it by omitting the `tags` and `repo` options.
This commit is contained in:
parent
71121bfd13
commit
4340afa523
@ -43,8 +43,12 @@ fi
|
|||||||
|
|
||||||
if [ -n "${PLUGIN_TAGS:-}" ]; then
|
if [ -n "${PLUGIN_TAGS:-}" ]; then
|
||||||
DESTINATIONS=$(echo "${PLUGIN_TAGS}" | tr ',' '\n' | while read tag; do echo "--destination=${REGISTRY}/${PLUGIN_REPO}:${tag} "; done)
|
DESTINATIONS=$(echo "${PLUGIN_TAGS}" | tr ',' '\n' | while read tag; do echo "--destination=${REGISTRY}/${PLUGIN_REPO}:${tag} "; done)
|
||||||
else
|
elif [ -n "${PLUGIN_REPO:-}" ]; then
|
||||||
DESTINATIONS="--destination=${PLUGIN_REPO}:latest"
|
DESTINATIONS="--destination=${PLUGIN_REPO}:latest"
|
||||||
|
else
|
||||||
|
DESTINATIONS="--no-push"
|
||||||
|
# Cache is not valid with --no-push
|
||||||
|
CACHE=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/kaniko/executor -v ${LOG} \
|
/kaniko/executor -v ${LOG} \
|
||||||
|
Loading…
Reference in New Issue
Block a user