Add retry on image build
Change-Id: I2b0b7eb735963102310edcdcced58d182c0c9be3 Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
parent
8a15d048cf
commit
7551c71c2a
@ -20,8 +20,13 @@ export HTTP_PROXY=${HTTP_PROXY:-${http_proxy}}
|
|||||||
export NO_PROXY=${NO_PROXY:-${no_proxy}}
|
export NO_PROXY=${NO_PROXY:-${no_proxy}}
|
||||||
export PROXY=${PROXY:-${http_proxy}}
|
export PROXY=${PROXY:-${http_proxy}}
|
||||||
|
|
||||||
|
set +e
|
||||||
echo "Build airshipctl docker images"
|
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"
|
echo "Copy airshipctl from docker image"
|
||||||
DOCKER_IMAGE_TAG=$(sudo -E make print-docker-image-tag)
|
DOCKER_IMAGE_TAG=$(sudo -E make print-docker-image-tag)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user