ci: improve deployment process by down/up-scaling
This commit is contained in:
parent
f2efb163c4
commit
521c04fb67
1 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue