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