Настройка dev сборки документации
This commit is contained in:
parent
0d5413039a
commit
66a9163f17
17
.drone.yml
17
.drone.yml
@ -114,12 +114,25 @@ clone:
|
|||||||
steps:
|
steps:
|
||||||
- name: build site
|
- name: build site
|
||||||
image: git.struchkov.dev/upagge/mkdocs-material-insiders:latest
|
image: git.struchkov.dev/upagge/mkdocs-material-insiders:latest
|
||||||
|
environment:
|
||||||
|
GIT_SSH:
|
||||||
|
from_secret: GIT_SSH
|
||||||
volumes:
|
volumes:
|
||||||
- name: mkdocs_cache
|
- name: mkdocs_cache
|
||||||
path: ${DRONE_WORKSPACE}/documentation/.cache
|
path: ${DRONE_WORKSPACE}/documentation/.cache
|
||||||
commands:
|
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
|
- 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:
|
image_pull_secrets:
|
||||||
- DOCKER_AUTH
|
- DOCKER_AUTH
|
||||||
@ -131,6 +144,6 @@ volumes:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: fcd23a173d0a823ff39f9efe454d936476d49f03840034af7dd2c671571004d4
|
hmac: 0d7c7b3a7531170530a785de9dac41a33f9c47045486e24fa1947ac04cfdd055
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user