Add retry on image build

Change-Id: I2b0b7eb735963102310edcdcced58d182c0c9be3
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
Andrii Ostapenko 2021-07-07 10:14:38 -06:00
parent 8a15d048cf
commit 7551c71c2a
No known key found for this signature in database
GPG Key ID: F3E83668DBB223B3

View File

@ -20,8 +20,13 @@ export HTTP_PROXY=${HTTP_PROXY:-${http_proxy}}
export NO_PROXY=${NO_PROXY:-${no_proxy}}
export PROXY=${PROXY:-${http_proxy}}
set +e
echo "Build airshipctl docker images"
sudo -E make images
for i in {1..3}; do
sudo -E make images && break
done
[ "$?" -ne 0 ] && exit 1
set -e
echo "Copy airshipctl from docker image"
DOCKER_IMAGE_TAG=$(sudo -E make print-docker-image-tag)