retry
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
This commit is contained in:
parent
5bfa1f7f65
commit
90c25b5f9d
|
@ -228,8 +228,8 @@ steps:
|
|||
- export NAME=gitea
|
||||
- export ROOT=stack
|
||||
- "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/build.sh $${DRONE_COMMIT_SHA}
|
||||
- sh .drone/push.sh $${DRONE_COMMIT_SHA}
|
||||
- sh .drone/build.sh ${DRONE_COMMIT_SHA}
|
||||
- sh .drone/push.sh ${DRONE_COMMIT_SHA}
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
|
@ -332,8 +332,8 @@ steps:
|
|||
- 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"
|
||||
- printenv
|
||||
- sh .drone/pull.sh $${DRONE_COMMIT_SHA}
|
||||
- sh .drone/deploy.sh $${DRONE_COMMIT_SHA}
|
||||
- sh .drone/pull.sh ${DRONE_COMMIT_SHA}
|
||||
- sh .drone/deploy.sh ${DRONE_COMMIT_SHA}
|
||||
environment:
|
||||
GITEA_APP_NAME:
|
||||
from_secret: gitea-app-name
|
||||
|
|
Loading…
Reference in New Issue