Skip to content
Snippets Groups Projects

gitlab-ci: Reduce cost and latency of jobs

Merged Emanuele Aina requested to merge wip/em/lightweight into master
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
+ 4
0
@@ -14,6 +14,8 @@ stages:
test-html:
image: registry.gitlab.com/pages/hugo:0.62.2
stage: generate-html
tags:
- lightweight
script:
- DEFAULT_BASEURL=${CI_PAGES_URL##http:} # don't force stuff on plain HTTP when publishing on HTTPS
- BASEURL=${BASEURL:-$DEFAULT_BASEURL} # set BASEURL in the CI variables to override it
@@ -26,6 +28,8 @@ test-html:
.gen-pdf:
image: docker-registry.apertis.org/apertis/apertis-v2020-documentation-builder
stage: generate-pdf
tags:
- lightweight
script:
- echo "Building PDFs on $(nproc) cores"
- find public -name "*.pdf-in" -print0 | xargs -0 -r -n1 -P "$(nproc)" scripts/create-pdf
Loading