From adde2b872ab6dc230fd5dfb22df59a5a1f07d162 Mon Sep 17 00:00:00 2001 From: Manuel Kieweg <mail@manuelkieweg.de> Date: Fri, 9 Oct 2020 11:23:26 +0100 Subject: [PATCH] mdbook --- .gitlab-ci.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 332e652f5..ed71fd8dd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,33 +59,34 @@ documentation:pdf: paths: - documentation/design/documentation.pdf -documentation:static: +.mdbook_common: &rust before_script: - cargo install mdbook image: - name: rust + name: rustdocker/rust:stable stage: documentation - rules: - - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' script: - mdbook build ./documentation/ --dest-dir public + cache: + paths: + - target + +documentation:static: + rules: + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' artifacts: paths: - public expire_in: 1 week + <<: *rust documentation:test: - before_script: - - cargo install mdbook - image: - name: rust - stage: documentation rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - script: - - ls - - ls documentation - - mdbook build ./documentation/ --dest-dir public + cache: + paths: + - target + <<: *rust sast: variables: -- GitLab