Skip to content

Commit f98a454

Browse files
committed
Add arch build availability check in the manifest script as well.
1 parent e3b4dbc commit f98a454

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

common_functions.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,15 @@ function get_arches() {
118118
function vm_supported_onarch() {
119119
vm=$1
120120
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
122127

123128
suparches=$(get_arches ${sums})
124-
sup=$(echo ${suparches} | grep ${current_arch})
129+
sup=$(echo ${suparches} | grep ${test_arch})
125130
echo ${sup}
126131
}
127132

@@ -235,6 +240,11 @@ function build_tags() {
235240
do
236241
for arch in ${arches}
237242
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
238248
atag=$(echo ${tag} | sed "s/{{ARCH}}/${arch}"/g)
239249
arch_tags="${arch_tags} ${atag}"
240250
done

0 commit comments

Comments
 (0)