generator-reshow 0.17.50 → 0.17.52
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.
|
@@ -25,7 +25,7 @@ jobs:
|
|
|
25
25
|
command: |
|
|
26
26
|
VER_PREFIX=$(support/VER_PREFIX.sh)
|
|
27
27
|
DOCKER_FILES=$(support/DOCKER_FILES.sh)
|
|
28
|
-
BUILD_FOLDER=${VER_PREFIX}
|
|
28
|
+
BUILD_FOLDER=${VER_PREFIX}-<< parameters.docker-tag >>
|
|
29
29
|
./support/build-multi.sh << parameters.docker-tag >>
|
|
30
30
|
ls -la ${BUILD_FOLDER}
|
|
31
31
|
for file in $DOCKER_FILES; do
|
|
@@ -41,9 +41,9 @@ jobs:
|
|
|
41
41
|
name: build Docker image
|
|
42
42
|
command: |
|
|
43
43
|
VER_PREFIX=$(support/VER_PREFIX.sh)
|
|
44
|
-
IMAGE_NAME=$(support/
|
|
44
|
+
IMAGE_NAME=$(support/remoteImage.sh)
|
|
45
45
|
BUILD_VERSION=<< parameters.docker-tag >>
|
|
46
|
-
BUILD_FOLDER=${VER_PREFIX}
|
|
46
|
+
BUILD_FOLDER=${VER_PREFIX}-<< parameters.docker-tag >>
|
|
47
47
|
BUILD_ARG=""
|
|
48
48
|
docker build ${BUILD_ARG} -f ${BUILD_FOLDER}/Dockerfile \
|
|
49
49
|
-t $IMAGE_NAME:${BUILD_VERSION} \
|
|
@@ -43,7 +43,7 @@ push() {
|
|
|
43
43
|
fi
|
|
44
44
|
echo "* <!-- Start to push ${remoteImage}:$tag"
|
|
45
45
|
IS_LOGIN=$(echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_LOGIN" --password-stdin)
|
|
46
|
-
if !
|
|
46
|
+
if [ ! $IS_LOGIN=~"Succeeded" ]; then
|
|
47
47
|
echo "Login Failed."
|
|
48
48
|
exit 1
|
|
49
49
|
fi
|
|
@@ -58,6 +58,7 @@ push() {
|
|
|
58
58
|
echo "* Finish pushed -->"
|
|
59
59
|
fi
|
|
60
60
|
fi
|
|
61
|
+
docker logout
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
build() {
|
|
@@ -5,7 +5,7 @@ DIR="$(
|
|
|
5
5
|
pwd -P
|
|
6
6
|
)"
|
|
7
7
|
|
|
8
|
-
FOLDER_PREFIX=$(${DIR}/
|
|
8
|
+
FOLDER_PREFIX=$(${DIR}/VER_PREFIX.sh)
|
|
9
9
|
COPY_FILES=$(${DIR}/COPY_FILES.sh)
|
|
10
10
|
DOCKER_FILES=$(${DIR}/DOCKER_FILES.sh)
|
|
11
11
|
BUILD_VERSION=$1
|
|
@@ -17,14 +17,14 @@ fi
|
|
|
17
17
|
|
|
18
18
|
do_build() {
|
|
19
19
|
echo 'building --- Version: ' $BUILD_VERSION '-->'
|
|
20
|
-
|
|
21
|
-
mkdir -p ${
|
|
20
|
+
BUILD_FOLDER=${DIR}/../${FOLDER_PREFIX}-${BUILD_VERSION}
|
|
21
|
+
mkdir -p ${BUILD_FOLDER}
|
|
22
22
|
|
|
23
|
-
for file in $COPY_FILES; do [ -e "$file" ] && cp -a $file ${
|
|
23
|
+
for file in $COPY_FILES; do [ -e "$file" ] && cp -a $file ${BUILD_FOLDER}; done
|
|
24
24
|
for file in $DOCKER_FILES; do
|
|
25
25
|
if [ -e "$file" ]; then
|
|
26
|
-
cp $file ${
|
|
27
|
-
DEST_FILE=${
|
|
26
|
+
cp $file ${BUILD_FOLDER}
|
|
27
|
+
DEST_FILE=${BUILD_FOLDER}/$file
|
|
28
28
|
sed -i -e "s|\[VERSION\]|$BUILD_VERSION|g" ${DEST_FILE}
|
|
29
29
|
if [ -e "${DEST_FILE}-e" ]; then rm ${DEST_FILE}-e; fi
|
|
30
30
|
fi
|
package/package.json
CHANGED