Настройка dev сборки документации
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
a0492f90a8
commit
39371bba7f
29
.drone.yml
29
.drone.yml
@ -108,17 +108,16 @@ trigger:
|
|||||||
branch:
|
branch:
|
||||||
- docs
|
- docs
|
||||||
|
|
||||||
|
clone:
|
||||||
|
disable: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build site
|
|
||||||
image: git.struchkov.dev/upagge/mkdocs-material-insiders:latest
|
- name: clone
|
||||||
|
image: maven:3.8.5-openjdk-17
|
||||||
environment:
|
environment:
|
||||||
GIT_SSH:
|
GIT_SSH:
|
||||||
from_secret: GIT_SSH
|
from_secret: GIT_SSH
|
||||||
SSH_CONFIG:
|
|
||||||
from_secret: SSH_CONFIG
|
|
||||||
volumes:
|
|
||||||
- name: mkdocs_cache
|
|
||||||
path: ${DRONE_WORKSPACE}/documentation/.cache
|
|
||||||
commands:
|
commands:
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
@ -130,14 +129,20 @@ steps:
|
|||||||
- chmod 644 ~/.ssh/known_hosts
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
- git config --global user.name "${DRONE_COMMIT_AUTHOR_NAME}"
|
- git config --global user.name "${DRONE_COMMIT_AUTHOR_NAME}"
|
||||||
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
|
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
|
||||||
- git remote add deploy ssh://git@git.struchkov.dev/Telegram-Bots/gitlab-notification.git
|
- git clone ssh://git@git.struchkov.dev:222/Telegram-Bots/gitlab-notification.git .
|
||||||
- cd documentation
|
- git checkout $DRONE_COMMIT
|
||||||
- git branch
|
- git branch
|
||||||
|
|
||||||
|
- name: build site
|
||||||
|
image: git.struchkov.dev/upagge/mkdocs-material-insiders:latest
|
||||||
|
volumes:
|
||||||
|
- name: mkdocs_cache
|
||||||
|
path: ${DRONE_WORKSPACE}/documentation/.cache
|
||||||
|
commands:
|
||||||
|
# - git remote add deploy ssh://git@git.struchkov.dev/Telegram-Bots/gitlab-notification.git
|
||||||
|
- cd documentation
|
||||||
- mike deploy --prefix gitlab-notification --branch docs-deploy --update-aliases develop
|
- mike deploy --prefix gitlab-notification --branch docs-deploy --update-aliases develop
|
||||||
- git checkout docs-deploy
|
- git checkout docs-deploy
|
||||||
- git branch
|
|
||||||
- git log
|
|
||||||
- git remote -v
|
|
||||||
- git push deploy HEAD:docs-deploy
|
- git push deploy HEAD:docs-deploy
|
||||||
|
|
||||||
image_pull_secrets:
|
image_pull_secrets:
|
||||||
|
Loading…
Reference in New Issue
Block a user