doc/.woodpecker.yml
Simon Vieille 3e1f65b091
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
update config
2023-02-13 18:05:38 +01:00

38 lines
921 B
YAML

pipeline:
build:
image: gitnet.fr/deblan/mkdocs
pull: true
environment:
- SITE_URL=https://tinternet.gitnet.page/doc/
commands: |
env | grep -i SITE
exit 1
sed -i "s,# site_url: \"{site_url}\",site_url: \"${SITE_URL}\"," mkdocs.yml
cat mkdocs.yml
mkdocs build
git checkout mkdocs.yml
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}"
deploy:
image: appleboy/drone-git-push
commands:
settings:
branch: pages
remote: git@gitnet.fr:tinternet/doc.git
force: false
commit: false
ssh_key:
from_secret: ssh_priv_key