File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -118,10 +118,15 @@ function get_arches() {
118
118
function vm_supported_onarch() {
119
119
vm=$1
120
120
sums=$2
121
- current_arch=` uname -m`
121
+
122
+ if [ ! -z " $3 " ]; then
123
+ test_arch=$3 ;
124
+ else
125
+ test_arch=` uname -m`
126
+ fi
122
127
123
128
suparches=$( get_arches ${sums} )
124
- sup=$( echo ${suparches} | grep ${current_arch } )
129
+ sup=$( echo ${suparches} | grep ${test_arch } )
125
130
echo ${sup}
126
131
}
127
132
@@ -235,6 +240,11 @@ function build_tags() {
235
240
do
236
241
for arch in ${arches}
237
242
do
243
+ # Check if all the supported arches are available for this build.
244
+ sup=$( vm_supported_onarch ${vm} ${shasums} ${arch} )
245
+ if [ -z " ${sup} " ]; then
246
+ continue ;
247
+ fi
238
248
atag=$( echo ${tag} | sed " s/{{ARCH}}/${arch} " /g)
239
249
arch_tags=" ${arch_tags} ${atag} "
240
250
done
You can’t perform that action at this time.
0 commit comments