We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7a03eb commit e62deb1Copy full SHA for e62deb1
1 file changed
build.sh
@@ -150,6 +150,7 @@ function docker_build_with_version {
150
BUILD_OPTIONS+=" --squash"
151
fi
152
i=1
153
+ build_failed=1
154
while [ $i -le 2 ]; do
155
command="docker build ${BUILD_OPTIONS} -f $dockerfile ${DOCKER_BUILD_CONTEXT}"
156
echo "-> building using $command"
@@ -185,11 +186,16 @@ function docker_build_with_version {
185
186
187
echo "$IMAGE_ID" > .image-id
188
tag_image
189
+ build_failed=0
190
break
191
192
193
rm -f "$tmp_file"
194
done
195
+ if [[ $build_failed -ne 0 ]]; then
196
+ echo "-> Build failed for version $dir and OS $OS after 2 attempts, giving up."
197
+ exit 1
198
+ fi
199
200
}
201
0 commit comments