From 66a9163f179f75ef48e62fd2b2755ff7f55db622 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Thu, 23 Feb 2023 18:25:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9?= =?UTF-8?q?=D0=BA=D0=B0=20dev=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=BA=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7b01959..b40e389 100644 --- a/.drone.yml +++ b/.drone.yml @@ -114,12 +114,25 @@ clone: steps: - name: build site image: git.struchkov.dev/upagge/mkdocs-material-insiders:latest + environment: + GIT_SSH: + from_secret: GIT_SSH volumes: - name: mkdocs_cache path: ${DRONE_WORKSPACE}/documentation/.cache commands: + - eval $(ssh-agent -s) + - mkdir -p ~/.ssh + - echo "$GIT_SSH" >> ~/.ssh/id_rsa + - chmod 700 ~/.ssh + - chmod 600 ~/.ssh/id_rsa + - ssh-keyscan -p 222 git.struchkov.dev >> ~/.ssh/known_hosts + - chmod 644 ~/.ssh/known_hosts + - git config --global user.name "${DRONE_COMMIT_AUTHOR_NAME}" + - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}" + - git remote add deploy ${DRONE_GIT_SSH_URL} - cd documentation - - mike deploy --prefix gitlab-notification --branch docs-deploy --push --update-aliases develop + - mike deploy --prefix gitlab-notification --branch docs-deploy --remote deploy --push --update-aliases develop image_pull_secrets: - DOCKER_AUTH @@ -131,6 +144,6 @@ volumes: --- kind: signature -hmac: fcd23a173d0a823ff39f9efe454d936476d49f03840034af7dd2c671571004d4 +hmac: 0d7c7b3a7531170530a785de9dac41a33f9c47045486e24fa1947ac04cfdd055 ...