retry
continuous-integration/drone/push Build is failing Details

This commit is contained in:
giles 2023-10-19 20:29:41 +01:00
parent 37dd57e75a
commit 19f51b34fa
1 changed files with 2 additions and 1 deletions

View File

@ -330,7 +330,8 @@ steps:
- export ROOT=stack
- cd /stack/gitea
- "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"
- echo $${DRONE_COMMIT_SHA}
- echo hello
- echo itis $${DRONE_COMMIT_SHA}
- sh .drone/pull.sh $${DRONE_COMMIT_SHA}
- sh .drone/deploy.sh $${DRONE_COMMIT_SHA}
environment: