diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index a40faa5..6654275 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -161,7 +161,7 @@ steps: - export REGISTRY_PASSWORD=$${REGISTRY_PASSWORD} - set -e - cd /stack/guacamole - - sh .drone/login.sh + - "n=0\nwhile :\ndo\n docker login $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/ --username client --password \"$${REGISTRY_PASSWORD}\" \\\\\n && break # substitute your command here\n n=$((n+1))\n if [ $n -ge 10 ]; then\n echo \"login failed\"\n exit 1\n fi\n echo \"retrying login..$n\"\n sleep 5\ndone\n" - sh .drone/pull.sh - sh .drone/deploy.sh environment: