From 1cbe4383edabc35172d4825b980bb3bf112e58be Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Fri, 24 Feb 2023 09:42:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=BE=D0=B9=20=D1=80=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D0=BD=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 53 +++++++++++++++++-- .../docs/getting-started/configuration.md | 2 +- documentation/mkdocs.yml | 2 + 3 files changed, 52 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 79d9c6d..57c47fd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -102,18 +102,18 @@ steps: --- kind: pipeline type: docker -name: create-docs-site +name: create-develop-docs-site trigger: branch: - - docs + - develop clone: disable: true steps: - - name: clone + - name: build docs image: git.struchkov.dev/upagge/mkdocs-material-insiders:latest volumes: - name: mkdocs_cache @@ -146,7 +146,52 @@ volumes: path: /drone/volume/mkdocs_cache/gitlab_notification --- +kind: pipeline +type: docker +name: create-release-docs-site + +trigger: + ref: + - refs/tags/v.*.*.* + +clone: + disable: true + +steps: + + - name: build docs + image: git.struchkov.dev/upagge/mkdocs-material-insiders:latest + volumes: + - name: mkdocs_cache + path: ${DRONE_WORKSPACE}/documentation/.cache + environment: + GIT_SSH: + from_secret: GIT_SSH + GIT_SSH_COMMAND: "ssh -i ~/.ssh/id_rsa -p 222" + commands: + - eval $(ssh-agent -s) + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - echo "$GIT_SSH" >> ~/.ssh/id_rsa + - 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 clone ssh://git@git.struchkov.dev:222/Telegram-Bots/gitlab-notification.git . + - git checkout $DRONE_COMMIT + - cd documentation + - mike deploy --prefix gitlab-notification --branch docs-deploy --push --update-aliases ${DRONE_TAG} latest + +image_pull_secrets: + - DOCKER_AUTH + +volumes: + - name: mkdocs_cache + host: + path: /drone/volume/mkdocs_cache/gitlab_notification +--- kind: signature -hmac: 7384641fafee0cb550bd211f736fae6193ebb52f2209b834e74d85117439f90d +hmac: 748f6fade3710de9653ee84344c5ce7ce2e9518df419ee4945f004df2ba1242a ... diff --git a/documentation/docs/getting-started/configuration.md b/documentation/docs/getting-started/configuration.md index 55634eb..491ebe8 100644 --- a/documentation/docs/getting-started/configuration.md +++ b/documentation/docs/getting-started/configuration.md @@ -3,7 +3,7 @@ ## Создание бота в Telegram Перед запуском необходимо создать бота в Telegram. Для этого перейдите в официального бота [@GodFather](https://t.me/BotFather) и выполните команду `/newbot`. -Первым делом вам предложат ввести имя для бота. Тест +Первым делом вам предложат ввести имя для бота. ## Конфигурация Несмотря на то, какой вариант запуска вы виберете, необходимо будет указать следующие переменные среды: diff --git a/documentation/mkdocs.yml b/documentation/mkdocs.yml index e4256b3..543b191 100644 --- a/documentation/mkdocs.yml +++ b/documentation/mkdocs.yml @@ -40,6 +40,8 @@ theme: - navigation.sections - navigation.tracking - navigation.footer + - navigation.path + - navigation.prune - search - search.suggest - search.highlight