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

This commit is contained in:
Struchkov Mark 2023-02-19 16:38:16 +03:00
parent f92b7f7163
commit fc66f9f7e5
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

View File

@ -1,3 +1,4 @@
---
#---
#kind: pipeline
#type: docker
@ -111,8 +112,16 @@ steps:
image: upagge/mkdocs-material
commands:
- mkdocs build
- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
- eval $(ssh-agent -s)
- 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
---
kind: signature
hmac: 3e4badb68ae8e0fc102b948d3383ca67155ad0e733bbbdb43560862c5de4fdd6
hmac: ba2354ecfe1d4aa4f0bc9418ae192b377d9d92f673cc91cdceb3fdeb65237c8d
...