Merge pull request 'ci: improve deployment process by down/up-scaling' (#21) from develop into master
Some checks failed
continuous-integration/drone/push Build is failing

Reviewed-on: #21
This commit is contained in:
Glenn Y. Rolland 2025-02-13 10:38:01 +00:00
commit af40d15983
2 changed files with 9 additions and 1 deletions

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:

View file

@ -5,4 +5,4 @@
# FROM superseriousbusiness/gotosocial:0.15.0
# FROM superseriousbusiness/gotosocial:0.16.0
# FROM superseriousbusiness/gotosocial:0.17.0
FROM superseriousbusiness/gotosocial:0.17.3
FROM superseriousbusiness/gotosocial:0.17.4