drone/.drone/lib/initialise-image.sh

12 lines
183 B
Bash
Raw Normal View History

2020-09-24 11:02:01 +00:00
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