.
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

This commit is contained in:
Giles Bradshaw 2020-09-24 14:42:22 +01:00
parent 9f17b875c8
commit 793d43d7c5
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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