update ci
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Simon Vieille 2022-07-25 16:14:32 +02:00
parent dd6cbb3668
commit 7c7598ecd6
Signed by: deblan
GPG key ID: 579388D585F70417

17
.woodpecker.yml Normal file
View file

@ -0,0 +1,17 @@
---
pipeline:
build_deploy:
image: deblan/devenv
secrets: [ssh_user_host, ssh_priv_key]
commands:
- pip3 install mkdocs
- mkdocs build
- mkdir "$HOME/.ssh"
- echo "$SSH_PRIV_KEY" > "$HOME/.ssh/id_ed25519"
- echo "$SSH_PUB_KEY" > "$HOME/.ssh/id_ed25519.pub"
- chmod 700 "$HOME/.ssh"
- chmod 600 "$HOME/.ssh/id_ed25519" "$HOME/.ssh/id_ed25519.pub"
- rsync -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" -avz --delete ./site/ "$SSH_USER_HOST:web/"
when:
branch:
- master