From e0681b5a06e4e1420152cf4576b012b47fa7e6b3 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Thu, 24 Sep 2020 12:02:01 +0100 Subject: [PATCH] . --- .drone/lib/initialise-image.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.drone/lib/initialise-image.sh b/.drone/lib/initialise-image.sh index 97498b9..f564771 100644 --- a/.drone/lib/initialise-image.sh +++ b/.drone/lib/initialise-image.sh @@ -1,3 +1,11 @@ -docker pull $2 \ -&& docker tag $2 $1$2 \ -&& docker push $1$2 \ No newline at end of file +n=0 +until [ 0 ] +do + docker pull $2 \ + && docker tag $2 $1$2 \ + && docker push $1$2 && break # substitute your command here + n=$((n+1)) + echo retrying.. + sleep 15 +done +