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

This commit is contained in:
Struchkov Mark 2023-02-19 17:26:41 +03:00
parent df6118af0a
commit 12c73a918e
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

View File

@ -117,13 +117,11 @@ steps:
from_secret: SSH_DEPLOY_PORT from_secret: SSH_DEPLOY_PORT
SSH_DEPLOY_PATH: SSH_DEPLOY_PATH:
from_secret: SSH_DEPLOY_PATH from_secret: SSH_DEPLOY_PATH
secrets:
commands: commands:
- mkdocs build - mkdocs build
- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' | ssh-add - > /dev/null - echo "$SSH_DEPLOY_KEY" >> ssh-add -
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
# - ssh-keyscan $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts # - 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 - scp -r -P $SSH_DEPLOY_PORT -o StrictHostKeyChecking=no ./site $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH
--- ---
kind: signature kind: signature
hmac: 3af5a0dddfef45dff43014c1bd367328c79540219b859ae5e09ba62e5b8396d9 hmac: a5a75fc727f211de45d4187a49212e7b1151d43198b0cb02064e9764835bee99
... ...