Compare commits
3 commits
af40d15983
...
171dc66cd1
Author | SHA1 | Date | |
---|---|---|---|
171dc66cd1 | |||
79cdca426a | |||
d8fe467288 |
1 changed files with 2 additions and 9 deletions
11
.drone.yml
11
.drone.yml
|
@ -51,24 +51,17 @@ steps:
|
||||||
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
|
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
|
||||||
- echo "$SSH_PRIVATE_KEY" | base64 -d > ~/.ssh/deploy_key
|
- echo "$SSH_PRIVATE_KEY" | base64 -d > ~/.ssh/deploy_key
|
||||||
- chmod 600 ~/.ssh/deploy_key
|
- chmod 600 ~/.ssh/deploy_key
|
||||||
|
- ssh-keygen -f ~/.ssh/deploy_key -y > ~/.ssh/deploy_key.pub
|
||||||
|
- cat ~/.ssh/deploy_key.pub | cut -f3 -d" "
|
||||||
- ssh -o StrictHostKeyChecking=no
|
- ssh -o StrictHostKeyChecking=no
|
||||||
-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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue