From fc66f9f7e5952a4fde9811c4ea23d1a8a393cf3d Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 19 Feb 2023 16:38:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B4=D0=B0=D1=87?= =?UTF-8?q?=D0=B0=20=D1=81=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=81=D0=B0=D0=B9?= =?UTF-8?q?=D1=82=D0=B0=20=D0=BD=D0=B0=20=D1=81=D0=B5=D1=80=D0=B2=D0=B5?= =?UTF-8?q?=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 ...