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
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #21
This commit is contained in:
commit
af40d15983
2 changed files with 9 additions and 1 deletions
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue