ci: improve deployment process by down/up-scaling #21

Merged
glenux merged 2 commits from develop into master 2025-02-13 10:38:03 +00:00
Showing only changes of commit 521c04fb67 - Show all commits

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: