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