Передача сгенерированного сайта на сервер
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
df6118af0a
commit
12c73a918e
@ -117,13 +117,11 @@ steps:
|
||||
from_secret: SSH_DEPLOY_PORT
|
||||
SSH_DEPLOY_PATH:
|
||||
from_secret: SSH_DEPLOY_PATH
|
||||
secrets:
|
||||
|
||||
commands:
|
||||
- mkdocs build
|
||||
- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
||||
- echo "$SSH_DEPLOY_KEY" >> ssh-add -
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
# - ssh-keyscan $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts
|
||||
@ -131,6 +129,6 @@ steps:
|
||||
- scp -r -P $SSH_DEPLOY_PORT -o StrictHostKeyChecking=no ./site $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH
|
||||
---
|
||||
kind: signature
|
||||
hmac: 3af5a0dddfef45dff43014c1bd367328c79540219b859ae5e09ba62e5b8396d9
|
||||
hmac: a5a75fc727f211de45d4187a49212e7b1151d43198b0cb02064e9764835bee99
|
||||
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user