.
This commit is contained in:
parent
9f17b875c8
commit
793d43d7c5
|
@ -5,6 +5,11 @@ do
|
||||||
&& docker tag $2 $1$2 \
|
&& docker tag $2 $1$2 \
|
||||||
&& docker push $1$2 && break # substitute your command here
|
&& docker push $1$2 && break # substitute your command here
|
||||||
n=$((n+1))
|
n=$((n+1))
|
||||||
|
if [ $n ge 2 ]; then
|
||||||
|
echo "initialise failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "retrying..$n"
|
echo "retrying..$n"
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
|
@ -4,6 +4,11 @@ do
|
||||||
docker login $1 --username client --password $2 \
|
docker login $1 --username client --password $2 \
|
||||||
&& break # substitute your command here
|
&& break # substitute your command here
|
||||||
n=$((n+1))
|
n=$((n+1))
|
||||||
|
|
||||||
|
if [ $n ge 2 ]; then
|
||||||
|
echo "login failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
echo "retrying login..$n"
|
echo "retrying login..$n"
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue