Experimental work towards adding Drone CI ...?

This commit is contained in:
Olivier 'reivilibre' 2022-03-16 12:54:23 +00:00
parent 1dde1d0d6b
commit b0fbdb2d1e
1 changed files with 24 additions and 0 deletions

24
.drone.yml Normal file
View File

@ -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