Передача сгенерированного сайта на сервер
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
f92b7f7163
commit
fc66f9f7e5
11
.drone.yml
11
.drone.yml
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
#---
|
#---
|
||||||
#kind: pipeline
|
#kind: pipeline
|
||||||
#type: docker
|
#type: docker
|
||||||
@ -111,8 +112,16 @@ steps:
|
|||||||
image: upagge/mkdocs-material
|
image: upagge/mkdocs-material
|
||||||
commands:
|
commands:
|
||||||
- mkdocs build
|
- 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
|
kind: signature
|
||||||
hmac: 3e4badb68ae8e0fc102b948d3383ca67155ad0e733bbbdb43560862c5de4fdd6
|
hmac: ba2354ecfe1d4aa4f0bc9418ae192b377d9d92f673cc91cdceb3fdeb65237c8d
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user