Настройка dev сборки документации
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing

This commit is contained in:
Struchkov Mark 2023-02-23 18:25:31 +03:00
parent 0d5413039a
commit 66a9163f17
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

View File

@ -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
...