generator-reshow 0.18.1 → 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.
|
@@ -8,19 +8,23 @@ commands:
|
|
|
8
8
|
type: string
|
|
9
9
|
buildx-version:
|
|
10
10
|
type: string
|
|
11
|
-
default: v0.
|
|
11
|
+
default: v0.22.0
|
|
12
12
|
steps:
|
|
13
|
+
- run:
|
|
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
|
+
- run:
|
|
17
|
+
name: Init Buildx VM
|
|
18
|
+
command: |
|
|
19
|
+
docker context create CIContext
|
|
20
|
+
docker run --rm --privileged tonistiigi/binfmt --install arm64
|
|
13
21
|
- run:
|
|
14
22
|
name: Install Docker Buildx
|
|
15
23
|
command: |
|
|
16
24
|
mkdir -vp ~/.docker/cli-plugins/
|
|
17
|
-
curl --silent -L "https://github.com/docker/buildx/releases/download/<< parameters.buildx-version >>/buildx-<< parameters.buildx-version >>.linux-
|
|
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
|
|
18
26
|
chmod a+x ~/.docker/cli-plugins/docker-buildx
|
|
19
|
-
docker buildx
|
|
20
|
-
sudo apt-get update && sudo apt-get install -y binfmt-support qemu-user-static
|
|
21
|
-
docker run --rm --privileged tonistiigi/binfmt --install arm64
|
|
22
|
-
docker context create buildcontext
|
|
23
|
-
docker buildx create --name joyful-<< parameters.docker-tag >>- --append buildcontext --use
|
|
27
|
+
docker buildx create --use --name joyful-<< parameters.docker-tag >>- CIContext
|
|
24
28
|
|
|
25
29
|
executors:
|
|
26
30
|
docker-publisher:
|
|
@@ -58,13 +62,16 @@ jobs:
|
|
|
58
62
|
name: Log time
|
|
59
63
|
command: date
|
|
60
64
|
- run:
|
|
61
|
-
name:
|
|
65
|
+
name: Copy Build Files
|
|
62
66
|
command: |
|
|
63
|
-
VER_PREFIX=$(support/VER_PREFIX.sh)
|
|
64
|
-
DOCKER_FILES=$(support/DOCKER_FILES.sh)
|
|
65
|
-
BUILD_FOLDER=${VER_PREFIX}-<< parameters.docker-tag >>
|
|
66
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 >>
|
|
67
73
|
ls -la ${BUILD_FOLDER}
|
|
74
|
+
DOCKER_FILES=$(support/DOCKER_FILES.sh)
|
|
68
75
|
for file in $DOCKER_FILES; do
|
|
69
76
|
echo ""
|
|
70
77
|
echo "###"
|
|
@@ -84,7 +91,7 @@ jobs:
|
|
|
84
91
|
ALT_VERSION=$(support/ALT_VERSION.sh)
|
|
85
92
|
IMAGE_NAME=$(DOCKER_HUB=1 support/remoteImage.sh)
|
|
86
93
|
BUILD_VERSION=<< parameters.docker-tag >>
|
|
87
|
-
BUILD_FOLDER=${VER_PREFIX}
|
|
94
|
+
BUILD_FOLDER=${VER_PREFIX}<< parameters.docker-tag >>
|
|
88
95
|
BUILD_ARG=""
|
|
89
96
|
LATEST_TAG=""
|
|
90
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