Передача сгенерированного сайта на сервер
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Struchkov Mark 2023-02-19 16:47:30 +03:00
parent 6785478646
commit 1e78b1b58d
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

View File

@ -121,14 +121,14 @@ steps:
- mkdocs build
- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
- eval $(ssh-agent -s)
- ssh-add "$SSH_DEPLOY_KEY"
- echo "$SSH_DEPLOY_KEY" >> ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- scp -c -P $SSH_DEPLOY_PORT ./site $SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH
# - ssh-keyscan $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts
# - chmod 644 ~/.ssh/known_hosts
- scp -P $SSH_DEPLOY_PORT ./site $SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH
---
kind: signature
hmac: 769dc8eadb821015af3d63bd7396a6cc73f3bfc47811ca149b156a9deae2472f
hmac: 36908a2d4ae532848639ea809f83821f07e07f38869aa2f834a85184efb546a6
...