quickpeep/.ci/woodpecker/manual.yml

17 lines
548 B
YAML

platform: linux/arm64
pipeline:
deployManual:
image: docker.bics.ga/rei_ci/mdbook:latest-arm64
when:
branch:
- main
secrets:
- deploy_ssh_key
commands: # warning! Doesn't seem to like hashed known_hosts...
- mdbook build
- echo "$DEPLOY_SSH_KEY" > /tmp/rsync_key
- chmod u=rw,go= /tmp/rsync_key
- rsync -e 'ssh -i /tmp/rsync_key -o "UserKnownHostsFile ./.ci/known_hosts"' -vaz --delete ./book/ space_docs_librepush_net@sallie.librepush.net:./public/quickpeep
- rm /tmp/rsync_key