generator-reshow 0.17.62 → 0.17.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -45,10 +45,14 @@ push() {
|
|
|
45
45
|
fi
|
|
46
46
|
fi
|
|
47
47
|
echo "* <!-- Start to push ${remoteImage}:$tag"
|
|
48
|
-
IS_LOGIN=$(echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_LOGIN" --password-stdin)
|
|
49
|
-
if [ -z "$IS_LOGIN+y" ]
|
|
50
|
-
echo "
|
|
48
|
+
IS_LOGIN=$(echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_LOGIN" --password-stdin 2>&1)
|
|
49
|
+
if [ -z "${IS_LOGIN+y}" ]; then
|
|
50
|
+
echo "Not get login info."
|
|
51
51
|
exit 1
|
|
52
|
+
elif ! expr "${IS_LOGIN}" : ".*Succeeded.*" > /dev/null; then
|
|
53
|
+
echo ${IS_LOGIN}
|
|
54
|
+
echo "Login not Succeeded."
|
|
55
|
+
exit 2
|
|
52
56
|
fi
|
|
53
57
|
docker push ${remoteImage}:$tag
|
|
54
58
|
echo "* Finish pushed -->"
|
package/package.json
CHANGED