update deployment steps
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Simon Vieille 2024-01-04 21:47:58 +01:00
parent e544e054d2
commit 6a38145fde
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -9,26 +9,33 @@ steps:
- git checkout mkdocs.yml
- git checkout overrides/main.html
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}"
# 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:
image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1
settings:
branch: pages
remote: git@gitnet.fr:deblan/side_menu_doc.git
force: false
commit: false
folder: site
ssh_key:
from_secret: ssh_priv_key
# 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