Use mdbook image to publish mdbook docs
All checks were successful
continuous-integration/drone the build was successful

This commit is contained in:
Olivier 'reivilibre' 2022-03-17 23:39:33 +00:00
parent 7360e0d614
commit e7c47fe3ff

View File

@ -2,16 +2,13 @@ platform: linux/arm64
pipeline: pipeline:
deployManual: deployManual:
image: rust:1.54.0-slim image: docker.bics.ga/rei_ci/mdbook:latest-arm64
when: when:
branch: branch:
- develop - develop
secrets: secrets:
- deploy_ssh_key - deploy_ssh_key
commands: # warning! Doesn't seem to like hashed known_hosts... 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 - mdbook build
- echo "$DEPLOY_SSH_KEY" > /tmp/rsync_key - echo "$DEPLOY_SSH_KEY" > /tmp/rsync_key
- chmod u=rw,go= /tmp/rsync_key - chmod u=rw,go= /tmp/rsync_key