murph-doc/.woodpecker.yml

19 lines
530 B
YAML
Raw Normal View History

2022-07-25 16:14:32 +02:00
pipeline:
2022-07-26 14:00:22 +02:00
build:
image: polinux/mkdocs
2022-07-25 16:14:32 +02:00
commands:
2023-02-09 21:50:06 +01:00
- pip install mkdocs-material
2022-07-25 16:14:32 +02:00
- mkdocs build
2022-07-26 14:00:22 +02:00
deploy:
image: eeacms/rsync
secrets: [ssh_user_host, ssh_priv_key]
commands:
2022-07-25 16:14:32 +02:00
- mkdir "$HOME/.ssh"
- echo "$SSH_PRIV_KEY" > "$HOME/.ssh/id_ed25519"
- chmod 700 "$HOME/.ssh"
2022-07-25 17:20:33 +02:00
- chmod 600 "$HOME/.ssh/id_ed25519"
2022-07-25 16:14:32 +02:00
- rsync -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" -avz --delete ./site/ "$SSH_USER_HOST:web/"
when:
branch:
- master