murph-doc/.woodpecker.yml
Simon Vieille 4babc7081b
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci debug
2022-12-25 23:36:46 +01:00

22 lines
551 B
YAML

clone:
git:
image: woodpeckerci/plugin-git:v1.6.0
pipeline:
build:
image: polinux/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:web/"
when:
branch:
- master