From b0fbdb2d1ee53a5ac08b8843882a05932f576599 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Wed, 16 Mar 2022 12:54:23 +0000 Subject: [PATCH] Experimental work towards adding Drone CI ...? --- .drone.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..0d73aaf --- /dev/null +++ b/.drone.yml @@ -0,0 +1,24 @@ +kind: pipeline +name: default + +platform: + os: linux + arch: arm64 + +steps: + - name: deploy manual + image: rust:1.53.0-slim + when: + branch: + - develop + environment: + DEPLOY_SSH_KEY: + from_secret: DEPLOY_SSH_KEY + commands: # warning! Doesn't seem to like hashed known_hosts... + - cargo install mdbook + - cd docs + - 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 ./docs/book space_docs_librepush_net@sallie.librepush.net:./public/scone + - rm /tmp/rsync_key