diff --git a/.drone.yml b/.drone.yml index 23e8b32..2adceab 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 ...