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 +