wiki/.woodpecker.yml
Simon Vieille 503d2954c5
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix ci syntax
2023-09-29 16:06:20 +02:00

18 lines
501 B
YAML

steps:
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