Compare commits
No commits in common. "113b5e14353f7cbc26785b1c0f0c72fc4b9f288f" and "b33449db0ce1628b46aaae3e29565d489d7c9c95" have entirely different histories.
113b5e1435
...
b33449db0c
1 changed files with 2 additions and 10 deletions
12
.drone.yml
12
.drone.yml
|
@ -44,9 +44,6 @@ steps:
|
||||||
SSH_PRIVATE_KEY:
|
SSH_PRIVATE_KEY:
|
||||||
from_secret: SSH_PRIVATE_KEY
|
from_secret: SSH_PRIVATE_KEY
|
||||||
commands:
|
commands:
|
||||||
- export $SSH_TARGET="$SSH_USER@$SSH_HOST"
|
|
||||||
- set -x
|
|
||||||
- echo "$SSH_TARGET"
|
|
||||||
- echo $SSH_USER
|
- echo $SSH_USER
|
||||||
- echo $SSH_HOST
|
- echo $SSH_HOST
|
||||||
- echo $SSH_PRIVATE_KEY
|
- echo $SSH_PRIVATE_KEY
|
||||||
|
@ -56,13 +53,8 @@ steps:
|
||||||
- chmod 600 ~/.ssh/deploy_key
|
- chmod 600 ~/.ssh/deploy_key
|
||||||
- ssh-keygen -f ~/.ssh/deploy_key -y > ~/.ssh/deploy_key.pub
|
- ssh-keygen -f ~/.ssh/deploy_key -y > ~/.ssh/deploy_key.pub
|
||||||
- "cat ~/.ssh/deploy_key.pub | cut -f3 -d' '"
|
- "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
|
- 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}"
|
||||||
-i ~/.ssh/deploy_key
|
|
||||||
"$SSH_USER@$SSH_HOST"
|
|
||||||
git:from-image social
|
|
||||||
"glenux/service-gotosocial:${DRONE_BRANCH/\\//-}_${DRONE_COMMIT_SHA:0:8}"
|
|
||||||
#
|
|
||||||
- echo "SUCCESS"
|
- echo "SUCCESS"
|
||||||
|
|
||||||
# volumes:
|
# volumes:
|
||||||
|
|
Loading…
Add table
Reference in a new issue