From 54cfd2e6ea3c720d6fc7a98a57410340ace7f7f7 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Thu, 23 Feb 2023 18:10:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=BE=D0=B2=D1=8B=D0=B9=20cicd=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=B4=D0=BE=D0=BA=D1=83=D0=BC=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index ddfff53..3a4b81e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -107,7 +107,9 @@ name: create-docs-site trigger: branch: - docs - - master + +clone: + depth: 1 steps: - name: build site @@ -115,6 +117,30 @@ steps: volumes: - name: mkdocs_cache path: ${DRONE_WORKSPACE}/documentation/.cache + commands: + - cd documentation + - mike deploy --prefix gitlab-notification --branch docs-deploy --push --update-aliases develop + +image_pull_secrets: + - DOCKER_AUTH + +volumes: + - name: mkdocs_cache + host: + path: /drone/volume/mkdocs_cache/gitlab_notification + +--- +kind: pipeline +type: docker +name: deploy-develop-docs-site + +trigger: + branch: + - docs-deploy + +steps: + - name: build site + image: git.struchkov.dev/upagge/mkdocs-material-insiders:latest environment: SSH_DEPLOY_KEY: from_secret: SSH_DEPLOY_KEY @@ -134,20 +160,13 @@ steps: - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -p $SSH_DEPLOY_PORT $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts - - cd documentation - - mkdocs build --site-dir gitlab-notification - scp -r -P $SSH_DEPLOY_PORT ./gitlab-notification $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH image_pull_secrets: - DOCKER_AUTH -volumes: - - name: mkdocs_cache - host: - path: /drone/volume/mkdocs_cache/gitlab_notification - --- kind: signature -hmac: f740dcba9e4e0d38ddd1789bd5eaa75502af9137c6e6c0710be953c61233d90d +hmac: 3c5571db9fadbd17a08aab8822828acf29f49ea480ccf7e90e0a0e19afe2b1aa ...