generator-reshow 0.17.63 → 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.
@@ -9,7 +9,7 @@ executors:
9
9
  jobs:
10
10
  test:
11
11
  docker:
12
- - image: allops/terratest
12
+ - image: allfunc/terratest
13
13
  steps:
14
14
  - checkout
15
15
  - setup_remote_docker:
@@ -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" ] || [ ! "$IS_LOGIN"=~"Succeeded" ]; then
50
- echo "Login Failed."
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.17.63",
2
+ "version": "0.17.64",
3
3
  "name": "generator-reshow",
4
4
  "repository": {
5
5
  "type": "git",