generator-reshow 0.17.67 → 0.17.68

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.
@@ -34,6 +34,15 @@ tag() {
34
34
  push() {
35
35
  PUSH_VERSION=${1:-$VERSION}
36
36
  LATEST_TAG=${2:-latest}
37
+ IS_LOGIN=$(echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_LOGIN" --password-stdin 2>&1)
38
+ if [ -z "${IS_LOGIN+y}" ]; then
39
+ echo "Not get login info."
40
+ exit 1
41
+ elif ! expr "${IS_LOGIN}" : ".*Succeeded.*" > /dev/null; then
42
+ echo ${IS_LOGIN}
43
+ echo "Login not Succeeded."
44
+ exit 2
45
+ fi
37
46
  if [ -z "$PUSH_VERSION" ]; then
38
47
  tag=latest
39
48
  else
@@ -45,15 +54,6 @@ push() {
45
54
  fi
46
55
  fi
47
56
  echo "* <!-- Start to push ${remoteImage}:$tag"
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
- exit 1
52
- elif ! expr "${IS_LOGIN}" : ".*Succeeded.*" > /dev/null; then
53
- echo ${IS_LOGIN}
54
- echo "Login not Succeeded."
55
- exit 2
56
- fi
57
57
  docker push ${remoteImage}:$tag
58
58
  echo "* Finish pushed -->"
59
59
  echo ""
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.17.67",
2
+ "version": "0.17.68",
3
3
  "name": "generator-reshow",
4
4
  "repository": {
5
5
  "type": "git",