Experimental work towards adding Drone CI ...?
This commit is contained in:
parent
1dde1d0d6b
commit
b0fbdb2d1e
|
@ -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
|
Loading…
Reference in New Issue