generator-reshow 0.17.52 → 0.17.53

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.
@@ -51,7 +51,7 @@ jobs:
51
51
  - run:
52
52
  name: Publish Docker Image to Docker Hub
53
53
  command: |
54
- ./compile.sh p << parameters.docker-tag >>
54
+ DOCKER_HUB=1 ./compile.sh p << parameters.docker-tag >>
55
55
 
56
56
  workflows:
57
57
  run-job:
@@ -37,7 +37,7 @@ 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
41
  tag=$LATEST_TAG-$PUSH_VERSION
42
42
  fi
43
43
  fi
@@ -51,7 +51,7 @@ push() {
51
51
  echo "* Finish pushed -->"
52
52
  echo ""
53
53
  if [ ! -z "$1" ]; then
54
- if [ "x$VERSION" == "x$PUSH_VERSION" ]; then
54
+ if [ "x$VERSION"=="x$PUSH_VERSION" ]; then
55
55
  echo "* <!-- Start to auto push ${remoteImage}:${LATEST_TAG}"
56
56
  docker tag ${remoteImage}:$tag ${remoteImage}:${LATEST_TAG}
57
57
  docker push ${remoteImage}:${LATEST_TAG}
@@ -75,7 +75,7 @@ build() {
75
75
  BUILD_ARG="$BUILD_ARG --build-arg ALT_VERSION=${ALT_VERSION}"
76
76
  fi
77
77
  echo build: ${DIR}/${DOCKER_FILE}
78
- if [ "x" != "x$NO_CACHE" ]; then
78
+ if [ "x"!="x$NO_CACHE" ]; then
79
79
  echo nocache: ${NO_CACHE}
80
80
  fi
81
81
  docker build ${BUILD_ARG} ${NO_CACHE} -f ${DIR}/${DOCKER_FILE} -t $localImage ${DIR}
@@ -8,7 +8,11 @@ DIR="$(
8
8
  ENV=${DIR}/../.env.build
9
9
 
10
10
  if [ -z "$remoteImage" ]; then
11
- remoteImage=$(awk -F "=" '/^remoteImage/ {print $2}' $ENV)
11
+ if [ -z "$DOCKER_HUB" ]; then
12
+ remoteImage=$(awk -F "=" '/^remoteImage/ {print $2}' $ENV)
13
+ else
14
+ remoteImage=$(awk -F "=" '/^dockerHubImage/ {print $2}' $ENV)
15
+ fi
12
16
  fi
13
17
 
14
18
  echo $remoteImage
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.17.52",
2
+ "version": "0.17.53",
3
3
  "name": "generator-reshow",
4
4
  "repository": {
5
5
  "type": "git",