generator-reshow 0.18.2 → 0.18.3
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.
|
@@ -11,10 +11,10 @@ commands:
|
|
|
11
11
|
default: v0.22.0
|
|
12
12
|
steps:
|
|
13
13
|
- run:
|
|
14
|
-
name: Install package
|
|
15
|
-
command: sudo apt-get update && sudo apt-get install -qq -y --no-install-recommends binfmt-support qemu-user-
|
|
14
|
+
name: Install Buildx package
|
|
15
|
+
command: sudo apt-get update && sudo apt-get install -qq -y --no-install-recommends binfmt-support qemu-user-static
|
|
16
16
|
- run:
|
|
17
|
-
name: Init VM
|
|
17
|
+
name: Init Buildx VM
|
|
18
18
|
command: |
|
|
19
19
|
docker context create CIContext
|
|
20
20
|
docker run --rm --privileged tonistiigi/binfmt --install arm64
|
|
@@ -24,7 +24,7 @@ commands:
|
|
|
24
24
|
mkdir -vp ~/.docker/cli-plugins/
|
|
25
25
|
curl --silent -L "https://github.com/docker/buildx/releases/download/<< parameters.buildx-version >>/buildx-<< parameters.buildx-version >>.linux-arm64" > ~/.docker/cli-plugins/docker-buildx
|
|
26
26
|
chmod a+x ~/.docker/cli-plugins/docker-buildx
|
|
27
|
-
docker buildx create --name joyful-<< parameters.docker-tag >>-
|
|
27
|
+
docker buildx create --use --name joyful-<< parameters.docker-tag >>- CIContext
|
|
28
28
|
|
|
29
29
|
executors:
|
|
30
30
|
docker-publisher:
|
|
@@ -62,13 +62,16 @@ jobs:
|
|
|
62
62
|
name: Log time
|
|
63
63
|
command: date
|
|
64
64
|
- run:
|
|
65
|
-
name:
|
|
65
|
+
name: Copy Build Files
|
|
66
66
|
command: |
|
|
67
|
-
VER_PREFIX=$(support/VER_PREFIX.sh)
|
|
68
|
-
DOCKER_FILES=$(support/DOCKER_FILES.sh)
|
|
69
|
-
BUILD_FOLDER=${VER_PREFIX}-<< parameters.docker-tag >>
|
|
70
67
|
./support/build-multi.sh << parameters.docker-tag >>
|
|
68
|
+
- run:
|
|
69
|
+
name: Dump docker file
|
|
70
|
+
command: |
|
|
71
|
+
VER_PREFIX=$(support/VER_PREFIX.sh)
|
|
72
|
+
BUILD_FOLDER=${VER_PREFIX}<< parameters.docker-tag >>
|
|
71
73
|
ls -la ${BUILD_FOLDER}
|
|
74
|
+
DOCKER_FILES=$(support/DOCKER_FILES.sh)
|
|
72
75
|
for file in $DOCKER_FILES; do
|
|
73
76
|
echo ""
|
|
74
77
|
echo "###"
|
|
@@ -88,7 +91,7 @@ jobs:
|
|
|
88
91
|
ALT_VERSION=$(support/ALT_VERSION.sh)
|
|
89
92
|
IMAGE_NAME=$(DOCKER_HUB=1 support/remoteImage.sh)
|
|
90
93
|
BUILD_VERSION=<< parameters.docker-tag >>
|
|
91
|
-
BUILD_FOLDER=${VER_PREFIX}
|
|
94
|
+
BUILD_FOLDER=${VER_PREFIX}<< parameters.docker-tag >>
|
|
92
95
|
BUILD_ARG=""
|
|
93
96
|
LATEST_TAG=""
|
|
94
97
|
if [ "x$VERSION" == "x$BUILD_VERSION" ]; then
|
|
@@ -7,7 +7,7 @@ DIR="$(
|
|
|
7
7
|
|
|
8
8
|
localImage=$(${DIR}/support/localImage.sh)
|
|
9
9
|
remoteImage=$(${DIR}/support/remoteImage.sh)
|
|
10
|
-
dockerHubImage=$(DOCKER_HUB=1 support/remoteImage.sh)
|
|
10
|
+
dockerHubImage=$(DOCKER_HUB=1 ${DIR}/support/remoteImage.sh)
|
|
11
11
|
archiveFile=$DIR/archive.tar
|
|
12
12
|
VERSION=$(${DIR}/support/VERSION.sh)
|
|
13
13
|
ALT_VERSION=$(${DIR}/support/ALT_VERSION.sh)
|
|
@@ -41,6 +41,9 @@ login() {
|
|
|
41
41
|
echo ${IS_LOGIN}
|
|
42
42
|
echo "Login not Succeeded."
|
|
43
43
|
exit 2
|
|
44
|
+
else
|
|
45
|
+
echo "Login Succeeded."
|
|
46
|
+
exit 0
|
|
44
47
|
fi
|
|
45
48
|
}
|
|
46
49
|
|
|
@@ -61,6 +64,12 @@ getToken() {
|
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
updateDockerHubDesc() {
|
|
67
|
+
DIR="$(
|
|
68
|
+
cd "$(dirname "$0")"
|
|
69
|
+
pwd -P
|
|
70
|
+
)"
|
|
71
|
+
remoteImage=$(${DIR}/support/remoteImage.sh)
|
|
72
|
+
dockerHubImage=$(DOCKER_HUB=1 ${DIR}/support/remoteImage.sh)
|
|
64
73
|
token=$(getToken)
|
|
65
74
|
if [ -e "README.md" ]; then
|
|
66
75
|
full_description=$(jq -s -R . README.md)
|
|
@@ -15,15 +15,22 @@ if [ -z "$BUILD_VERSION" ]; then
|
|
|
15
15
|
exit 1
|
|
16
16
|
fi
|
|
17
17
|
|
|
18
|
+
copyfile() {
|
|
19
|
+
src=$1
|
|
20
|
+
dest=$2
|
|
21
|
+
dir_path=$(dirname "$src")
|
|
22
|
+
mkdir -p $dest/$dir_path
|
|
23
|
+
cp -a $src $dest/$dir_path
|
|
24
|
+
}
|
|
25
|
+
|
|
18
26
|
do_build() {
|
|
19
27
|
echo 'building --- Version: ' $BUILD_VERSION '-->'
|
|
20
|
-
BUILD_FOLDER=${DIR}/../${FOLDER_PREFIX}
|
|
21
|
-
mkdir -p ${BUILD_FOLDER}
|
|
28
|
+
BUILD_FOLDER=${DIR}/../${FOLDER_PREFIX}${BUILD_VERSION}
|
|
22
29
|
|
|
23
|
-
for file in $COPY_FILES; do [ -e "$file" ] &&
|
|
30
|
+
for file in $COPY_FILES; do [ -e "$file" ] && copyfile $file ${BUILD_FOLDER}; done
|
|
24
31
|
for file in $DOCKER_FILES; do
|
|
25
32
|
if [ -e "$file" ]; then
|
|
26
|
-
|
|
33
|
+
copyfile $file ${BUILD_FOLDER}
|
|
27
34
|
DEST_FILE=${BUILD_FOLDER}/$file
|
|
28
35
|
sed -i -e "s|\[VERSION\]|$BUILD_VERSION|g" ${DEST_FILE}
|
|
29
36
|
if [ -e "${DEST_FILE}-e" ]; then rm ${DEST_FILE}-e; fi
|
package/package.json
CHANGED