Commit f159615a authored by Andreas Böttger's avatar Andreas Böttger 😬
Browse files

Update .gitlab-ci.yml

parent 9441eb95
Pipeline #33325 passed with stages
in 3 minutes and 18 seconds
......@@ -20,6 +20,7 @@ variables:
stages:
- tests
- clone
- pdf
- pages
- review
- deploy
......@@ -66,6 +67,34 @@ clone_pages:
fi
'
- git branch | cat
build_pdf:
image: docker.rz.tu-harburg.de:5000/docker/gitbook:node
stage: pdf
script:
- gitbook install
- |
(
cd ./_raw/book;
gitbook install;
gitbook pdf ./ ../book.pdf
)
- mkdir -p ./templates/reader/book_pdf
- mv ./_raw/book*.pdf ./templates/reader/book_pdf
- |
(
cd ./_raw/study-book;
gitbook install;
gitbook pdf ./ ../studybook.pdf
)
- mkdir -p ./templates/studyreader/studybook_pdf
- mv ./_raw/studybook*.pdf ./templates/studyreader/studybook_pdf
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
expire_in: 1 week
paths:
- ./templates/reader/book_pdf
- ./templates/studyreader/studybook_pdf
build_pages:
image: docker.rz.tu-harburg.de:5000/docker/gitbook:node
......@@ -108,35 +137,6 @@ build_pages:
)
- mv ./_raw/study-book/_book ./templates/studyreader
build_pdf:
image: docker.rz.tu-harburg.de:5000/docker/gitbook:node
stage: pages
script:
- gitbook install
- |
(
cd ./_raw/book;
gitbook install;
gitbook pdf ./ ../book.pdf
)
- mkdir -p ./templates/reader/book_pdf
- mv ./_raw/book*.pdf ./templates/reader/book_pdf
- |
(
cd ./_raw/study-book;
gitbook install;
gitbook pdf ./ ../studybook.pdf
)
- mkdir -p ./templates/studyreader/studybook_pdf
- mv ./_raw/studybook*.pdf ./templates/studyreader/studybook_pdf
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
expire_in: 1 week
paths:
- ./templates/reader/book_pdf
- ./templates/studyreader/studybook_pdf
start_review:
stage: review
before_script: *before_script_definition
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment