From 8e688039a37cf71d7f2a4301d94d1d738e1050aa Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Thu, 4 Jan 2024 21:57:01 +0100 Subject: [PATCH] update deployment steps --- .woodpecker.yml | 44 ++++++++++++++++++-------------------------- 1 file changed, 18 insertions(+), 26 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index a4da605..33773e3 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -8,35 +8,27 @@ steps: - mkdocs build - git checkout mkdocs.yml - git checkout overrides/main.html - - ls -lah site/ - # 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: codeberg.org/xfix/plugin-codeberg-pages-deploy:1 + image: appleboy/drone-git-push + commands: settings: - folder: site + branch: pages + remote: git@gitnet.fr:deblan/side_menu_doc.git + force: false + commit: false ssh_key: from_secret: ssh_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