wiki/.woodpecker.yml
Simon Vieille 246e671d47
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
add content and conf
2023-02-11 14:59:24 +01:00

18 lines
504 B
YAML

pipeline:
build:
image: gitnet.fr/deblan/mkdocs
commands:
- mkdocs build
deploy:
image: eeacms/rsync
secrets: [ssh_user_host, ssh_priv_key]
commands:
- mkdir "$HOME/.ssh"
- echo "$SSH_PRIV_KEY" > "$HOME/.ssh/id_ed25519"
- chmod 700 "$HOME/.ssh"
- chmod 600 "$HOME/.ssh/id_ed25519"
- rsync -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" -avz --delete ./site/ "$SSH_USER_HOST:mkdocs/"
when:
branch:
- main