Build and deploy manual in CI
continuous-integration/drone the build was successful Details

This commit is contained in:
Olivier 'reivilibre' 2021-09-18 07:30:25 +01:00
parent 29d44dd861
commit 2f9f6758f5
2 changed files with 20 additions and 0 deletions

1
.ci/known_hosts Normal file
View File

@ -0,0 +1 @@
sallie.librepush.net,79.143.178.141 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHPJu+9XaDuDQA8jVdD++BSkazgVUt1c22oa+FoWiqWVWAVu33+Jh3Evc4s3HK6jMMuOIVs8AVnGAUY5eaqmJik=

19
.woodpecker.yml Normal file
View File

@ -0,0 +1,19 @@
platform: linux/arm64
pipeline:
deployManual:
image: rust:1.54.0-slim
when:
branch:
- develop
secrets:
- deploy_ssh_key
commands: # warning! Doesn't seem to like hashed known_hosts...
- cargo install -q mdbook
- DEBIAN_FRONTEND=noninteractive apt-get -qq update
- DEBIAN_FRONTEND=noninteractive apt-get -yqq install rsync ssh
- 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/scone
- rm /tmp/rsync_key