generator-reshow 0.17.67 → 0.17.69

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