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
2 changed files with 9 additions and 1 deletions

View file

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

View file

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