ci: improve deployment process by down/up-scaling
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build was killed

This commit is contained in:
Glenn Y. Rolland 2025-02-13 11:32:27 +01:00
parent f2efb163c4
commit 521c04fb67

View file

@ -55,12 +55,20 @@ steps:
-i ~/.ssh/deploy_key
"$SSH_USER@$SSH_HOST"
ps:stop social
- ssh -o StrictHostKeyChecking=no
-i ~/.ssh/deploy_key
"$SSH_USER@$SSH_HOST"
ps:scale social web=0
- ssh -o StrictHostKeyChecking=no
-i ~/.ssh/deploy_key
"$SSH_USER@$SSH_HOST"
git:from-image social
"glenux/service-gotosocial:${DRONE_BRANCH/\\//-}_${DRONE_COMMIT_SHA:0:8}"
#
- ssh -o StrictHostKeyChecking=no
-i ~/.ssh/deploy_key
"$SSH_USER@$SSH_HOST"
ps:scale social web=1
- echo "SUCCESS"
# volumes: