fix: destination lack

This commit is contained in:
annprog 2019-10-27 23:41:25 +08:00 committed by Nándor István Krácser
parent 98dea6ec95
commit af1f7ea186

View File

@ -55,7 +55,7 @@ if [ -n "${PLUGIN_TAGS:-}" ]; then
elif [ -f .tags ]; then elif [ -f .tags ]; then
DESTINATIONS=$(cat .tags| tr ',' '\n' | while read tag; do echo "--destination=${REGISTRY}/${PLUGIN_REPO}:${tag} "; done) DESTINATIONS=$(cat .tags| tr ',' '\n' | while read tag; do echo "--destination=${REGISTRY}/${PLUGIN_REPO}:${tag} "; done)
elif [ -n "${PLUGIN_REPO:-}" ]; then elif [ -n "${PLUGIN_REPO:-}" ]; then
DESTINATIONS="--destination=${PLUGIN_REPO}:latest" DESTINATIONS="--destination=${REGISTRY}/${PLUGIN_REPO}:latest"
else else
DESTINATIONS="--no-push" DESTINATIONS="--no-push"
# Cache is not valid with --no-push # Cache is not valid with --no-push