File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 3
3
# exit script if return code != 0
4
4
set -e
5
5
6
- # release tag name from build arg, stripped of build ver using string manipulation
6
+ # release tag name from buildx arg, stripped of build ver using string manipulation
7
7
RELEASETAG=" ${1// -[0-9][0-9]/ } "
8
8
9
+ # target arch from buildx arg
10
+ TARGETARCH=" ${2} "
11
+
12
+ if [[ -z " ${RELEASETAG} " ]]; then
13
+ echo " [warn] Release tag name from build arg is empty, exiting script..."
14
+ exit 1
15
+ fi
16
+
17
+ if [[ -z " ${TARGETARCH} " ]]; then
18
+ echo " [warn] Target architecture name from build arg is empty, exiting script..."
19
+ exit 1
20
+ fi
21
+
9
22
# build scripts
10
23
# ###
11
24
@@ -18,11 +31,6 @@ unzip /tmp/scripts-master.zip -d /tmp
18
31
# move shell scripts to /root
19
32
mv /tmp/scripts-master/shell/arch/docker/* .sh /usr/local/bin/
20
33
21
- # detect image arch
22
- # ###
23
-
24
- # get target arch from Dockerfile argument
25
- TARGETARCH=" ${2} "
26
34
27
35
# pacman packages
28
36
# ###
You can’t perform that action at this time.
0 commit comments