2020-09-24 11:13:50 +00:00
|
|
|
n=0
|
|
|
|
while :
|
|
|
|
do
|
|
|
|
docker login $1 --username client --password $2 \
|
|
|
|
&& break # substitute your command here
|
|
|
|
n=$((n+1))
|
|
|
|
echo "retrying login..$n"
|
|
|
|
sleep 15
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
docker login $1 --username client --password $2
|
|
|
|
|
2020-09-23 19:16:51 +00:00
|
|
|
sh $(dirname $0)/initialise-image.sh $1 drone/drone:1.9.0 \
|
2020-09-24 10:55:56 +00:00
|
|
|
&& sh $(dirname $0)/initialise-image.sh $1 drone/drone-runner-docker:1.5.0
|