From 48114020c30c675bdd2407e45f471733f539dcff Mon Sep 17 00:00:00 2001 From: giles Date: Thu, 19 Oct 2023 20:31:40 +0100 Subject: [PATCH] retry --- .drone/drone-home.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index 0e58a3d..798c489 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -330,8 +330,7 @@ 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 hello - - echo itis $${DRONE_COMMIT_SHA} + - printenv - sh .drone/pull.sh $${DRONE_COMMIT_SHA} - sh .drone/deploy.sh $${DRONE_COMMIT_SHA} environment: