move docker push outside login

This commit is contained in:
Eugenio Romano
2018-05-28 12:00:38 +01:00
parent 8277773954
commit 22006395c7

View File

@@ -47,10 +47,9 @@ docker tag alfresco/demo-shell:${current_tag} alfresco/demo-shell:${current_tag}
if $EXEC_LOGIN == true; then
echo "====== LOGIN ====="
docker login -u "${USERNAME}" -p "${PASSWORD}"
docker push "alfresco/demo-shell"
fi
docker push "alfresco/demo-shell"
echo "====== CLEAN LOCAL IMAGE TAG ${current_tag} ====="
docker rmi -f alfresco/demo-shell:${current_tag}
done