pages-ci/.woodpecker.yml

28 lines
623 B
YAML
Raw Permalink Normal View History

2023-09-29 16:35:46 +02:00
steps:
2022-07-25 13:39:52 +02:00
build:
2022-07-26 08:56:59 +02:00
image: klakegg/hugo
2022-07-25 13:39:52 +02:00
update:
image: alpine/git
commands:
2022-07-25 14:01:26 +02:00
- git fetch --no-tags origin +refs/heads/pages
2022-07-25 13:54:05 +02:00
- git switch pages
2022-07-25 14:06:50 +02:00
- git config --global user.email ci@gitnet.fr
- git config --global user.name CI
2022-07-26 08:56:59 +02:00
- mv public /tmp/
2022-07-25 14:57:42 +02:00
- rm * -fr
2022-07-26 08:56:59 +02:00
- mv /tmp/public/* .
2022-07-25 14:57:42 +02:00
- git add .
2022-07-31 18:43:58 +02:00
- git commit -m "Build ${CI_BUILD_NUMBER}"
2022-07-25 13:39:52 +02:00
deploy:
image: appleboy/drone-git-push
2022-07-25 14:20:23 +02:00
commands:
2022-07-25 14:22:03 +02:00
settings:
branch: pages
remote: git@gitnet.fr:deblan/pages-ci.git
force: false
commit: false
2022-07-25 14:50:16 +02:00
ssh_key:
from_secret: ssh_priv_key