2023-02-11 23:57:28 +01:00
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: gitnet.fr/deblan/mkdocs
|
|
|
|
commands:
|
2023-02-12 00:13:34 +01:00
|
|
|
- sed -i 's/# site_url/site_url/' mkdocs.yml
|
2023-02-11 23:57:28 +01:00
|
|
|
- mkdocs build
|
2023-02-12 00:14:30 +01:00
|
|
|
- git checkout mkdocs.yml
|
2023-02-11 23:57:28 +01:00
|
|
|
|
|
|
|
update:
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git fetch --no-tags origin +refs/heads/pages
|
|
|
|
- git switch pages
|
|
|
|
- git config --global user.email ci@gitnet.fr
|
|
|
|
- git config --global user.name CI
|
|
|
|
- mv site /tmp/
|
|
|
|
- rm * -fr
|
|
|
|
- mv /tmp/site/* .
|
|
|
|
- git add .
|
|
|
|
- git commit -m "Build ${CI_BUILD_NUMBER}"
|
2023-02-12 00:05:40 +01:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
image: appleboy/drone-git-push
|
|
|
|
commands:
|
|
|
|
settings:
|
|
|
|
branch: pages
|
|
|
|
remote: git@gitnet.fr:deblan/side_menu_doc.git
|
|
|
|
force: false
|
|
|
|
commit: false
|
|
|
|
ssh_key:
|
|
|
|
from_secret: ssh_priv_key
|