generator-reshow 0.17.53 → 0.17.55

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.
@@ -7,6 +7,18 @@ executors:
7
7
  - image: cimg/base:current
8
8
 
9
9
  jobs:
10
+ test:
11
+ docker:
12
+ - image: hillliu/terratest
13
+ steps:
14
+ - checkout
15
+ - setup_remote_docker:
16
+ version: 20.10.7
17
+ docker_layer_caching: true
18
+ - run:
19
+ name: "Test with terratest"
20
+ command: |
21
+ go test -v ./tests
10
22
  build-and-publish:
11
23
  parameters:
12
24
  docker-tag:
@@ -41,7 +53,7 @@ jobs:
41
53
  name: build Docker image
42
54
  command: |
43
55
  VER_PREFIX=$(support/VER_PREFIX.sh)
44
- IMAGE_NAME=$(support/remoteImage.sh)
56
+ IMAGE_NAME=$(DOCKER_HUB=1 support/remoteImage.sh)
45
57
  BUILD_VERSION=<< parameters.docker-tag >>
46
58
  BUILD_FOLDER=${VER_PREFIX}-<< parameters.docker-tag >>
47
59
  BUILD_ARG=""
@@ -56,7 +68,10 @@ jobs:
56
68
  workflows:
57
69
  run-job:
58
70
  jobs:
71
+ - test
59
72
  - build-and-publish:
73
+ requires:
74
+ - test
60
75
  matrix:
61
76
  parameters:
62
- docker-tag: ["0.0"]
77
+ docker-tag: ["0.0.0"]
@@ -37,13 +37,15 @@ push() {
37
37
  tag=latest
38
38
  else
39
39
  tag=$PUSH_VERSION
40
- if [ "x$LATEST_TAG"!="xlatest" ]; then
40
+ if [ "x${LATEST_TAG}" != 'xlatest' ]; then
41
+ echo "LATEST_TAG: $LATEST_TAG"
42
+ echo ""
41
43
  tag=$LATEST_TAG-$PUSH_VERSION
42
44
  fi
43
45
  fi
44
46
  echo "* <!-- Start to push ${remoteImage}:$tag"
45
47
  IS_LOGIN=$(echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_LOGIN" --password-stdin)
46
- if [ ! $IS_LOGIN=~"Succeeded" ]; then
48
+ if [ -z "$IS_LOGIN+y" ] || [ ! "$IS_LOGIN"=~"Succeeded" ]; then
47
49
  echo "Login Failed."
48
50
  exit 1
49
51
  fi
@@ -51,7 +53,7 @@ push() {
51
53
  echo "* Finish pushed -->"
52
54
  echo ""
53
55
  if [ ! -z "$1" ]; then
54
- if [ "x$VERSION"=="x$PUSH_VERSION" ]; then
56
+ if [ "x$VERSION" = "x$PUSH_VERSION" ]; then
55
57
  echo "* <!-- Start to auto push ${remoteImage}:${LATEST_TAG}"
56
58
  docker tag ${remoteImage}:$tag ${remoteImage}:${LATEST_TAG}
57
59
  docker push ${remoteImage}:${LATEST_TAG}
@@ -75,7 +77,7 @@ build() {
75
77
  BUILD_ARG="$BUILD_ARG --build-arg ALT_VERSION=${ALT_VERSION}"
76
78
  fi
77
79
  echo build: ${DIR}/${DOCKER_FILE}
78
- if [ "x"!="x$NO_CACHE" ]; then
80
+ if [ 'x' != "x$NO_CACHE" ]; then
79
81
  echo nocache: ${NO_CACHE}
80
82
  fi
81
83
  docker build ${BUILD_ARG} ${NO_CACHE} -f ${DIR}/${DOCKER_FILE} -t $localImage ${DIR}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.17.53",
2
+ "version": "0.17.55",
3
3
  "name": "generator-reshow",
4
4
  "repository": {
5
5
  "type": "git",