Build and deploy manual in CI
continuous-integration/drone the build was successful
Details
continuous-integration/drone the build was successful
Details
This commit is contained in:
parent
29d44dd861
commit
2f9f6758f5
|
@ -0,0 +1 @@
|
|||
sallie.librepush.net,79.143.178.141 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHPJu+9XaDuDQA8jVdD++BSkazgVUt1c22oa+FoWiqWVWAVu33+Jh3Evc4s3HK6jMMuOIVs8AVnGAUY5eaqmJik=
|
|
@ -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
|
Loading…
Reference in New Issue