From 37dd57e75afafdf8b8e520c3ccb333c7b054e293 Mon Sep 17 00:00:00 2001 From: giles Date: Thu, 19 Oct 2023 20:28:09 +0100 Subject: [PATCH] retry --- .drone/deploy.sh | 1 + .drone/drone-home.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.drone/deploy.sh b/.drone/deploy.sh index 312db68..489700f 100644 --- a/.drone/deploy.sh +++ b/.drone/deploy.sh @@ -1,4 +1,5 @@ export LOCAL_DOCKER_REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/ \ +&& echo $1 \ && export TAG=$1 \ && docker stack rm gitea \ && echo 'sleeping...zzz' \ diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index 11835b2..082145b 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -330,6 +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 $${DRONE_COMMIT_SHA} - sh .drone/pull.sh $${DRONE_COMMIT_SHA} - sh .drone/deploy.sh $${DRONE_COMMIT_SHA} environment: