File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,28 @@ elif [ -f "$docker_dir/disabled/$image/Dockerfile" ]; then
123123 -
124124else
125125 echo Invalid image: $image
126+
127+ # Check whether the image exists for other architectures
128+ for arch_dir in " ${script_dir} " /host-* ; do
129+ # Avoid checking non-directories and the current host architecture directory
130+ if ! [[ -d " ${arch_dir} " ]]; then
131+ continue
132+ fi
133+ if [[ " ${arch_dir} " = " ${docker_dir} " ]]; then
134+ continue
135+ fi
136+
137+ arch_name=" $( basename " ${arch_dir} " | sed ' s/^host-//' ) "
138+ if [[ -f " ${arch_dir} /${image} /Dockerfile" ]]; then
139+ echo " Note: the image exists for the ${arch_name} host architecture"
140+ elif [[ -f " ${arch_dir} /disabled/${image} /Dockerfile" ]]; then
141+ echo " Note: the disabled image exists for the ${arch_name} host architecture"
142+ else
143+ continue
144+ fi
145+ echo " Note: the current host architecture is $( uname -m) "
146+ done
147+
126148 exit 1
127149fi
128150
You can’t perform that action at this time.
0 commit comments