From 19f51b34fa15ae8564d745c18d31edcaa5cd2e87 Mon Sep 17 00:00:00 2001 From: giles Date: Thu, 19 Oct 2023 20:29:41 +0100 Subject: [PATCH] retry --- .drone/drone-home.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index 082145b..0e58a3d 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -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: