Compare commits
15 commits
glenux-pat
...
develop
Author | SHA1 | Date | |
---|---|---|---|
42dbd3da8a | |||
b99c21036f | |||
cd9ef12239 | |||
113b5e1435 | |||
5aeebeca67 | |||
b33449db0c | |||
a634e2ae46 | |||
1b98f064e2 | |||
b53e841b69 | |||
25e90f7048 | |||
b3b042e2f1 | |||
f0b392bdc3 | |||
850b2fc5dd | |||
db41d9d495 | |||
b6ffe1bb58 |
2 changed files with 11 additions and 8 deletions
15
.drone.yml
15
.drone.yml
|
@ -44,8 +44,11 @@ steps:
|
|||
SSH_PRIVATE_KEY:
|
||||
from_secret: SSH_PRIVATE_KEY
|
||||
commands:
|
||||
- echo $SSH_USER
|
||||
- echo $SSH_HOST
|
||||
- export SSH_TARGET="$SSH_USER@$SSH_HOST"
|
||||
- set -x
|
||||
- echo "$SSH_TARGET"
|
||||
- echo $SSH_USER | wc -c
|
||||
- echo $SSH_HOST | wc -c
|
||||
- echo $SSH_PRIVATE_KEY
|
||||
- apk update && apk add openssh-client
|
||||
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
|
||||
|
@ -53,15 +56,13 @@ steps:
|
|||
- 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 -i ~/.ssh/deploy_key $SSH_TARGET ps:stop social
|
||||
- ssh -o StrictHostKeyChecking=no
|
||||
-i ~/.ssh/deploy_key
|
||||
"$SSH_USER@$SSH_HOST"
|
||||
ps:stop social
|
||||
- ssh -o StrictHostKeyChecking=no
|
||||
-i ~/.ssh/deploy_key
|
||||
"$SSH_USER@$SSH_HOST"
|
||||
$SSH_USER@$SSH_HOST
|
||||
git:from-image social
|
||||
"glenux/service-gotosocial:${DRONE_BRANCH/\\//-}_${DRONE_COMMIT_SHA:0:8}"
|
||||
#
|
||||
- echo "SUCCESS"
|
||||
|
||||
# volumes:
|
||||
|
|
|
@ -5,4 +5,6 @@
|
|||
# FROM superseriousbusiness/gotosocial:0.15.0
|
||||
# FROM superseriousbusiness/gotosocial:0.16.0
|
||||
# FROM superseriousbusiness/gotosocial:0.17.0
|
||||
FROM superseriousbusiness/gotosocial:0.17.4
|
||||
# FROM superseriousbusiness/gotosocial:0.17.4
|
||||
# FROM superseriousbusiness/gotosocial:0.18.0
|
||||
FROM superseriousbusiness/gotosocial:0.18.3
|
||||
|
|
Loading…
Add table
Reference in a new issue