compile_latex: image: aergus/latex # the docker image by aergus https://hub.docker.com/r/aergus/latex/ stage: build variables: GIT_SUBMODULE_STRATEGY: recursive before_script: - git submodule sync - git submodule update --init --remote script: # the following script requires bash # when editing, be careful, not to use any colons since they mess up the yaml parser! # compile all the PDFs you are interested in: - make - git ls-files -z -o -x '*.pdf' -x '*.log' |xargs -0 rm -v -f # remove all untracked files (-o) except for *.pdf and *.log files cache: untracked: true # cache all pdf files for subsequent runs artifacts: name: "${CI_PROJECT_NAME}-pdfs" when: always expire_in: 10 yrs untracked: true # You can link the most recently *finished* artifacts by a badge: # # Link: https://gitlab.cs.fau.de/%{project_path}/-/jobs/artifacts/%{default_branch}/browse?job=compile_latex # Badge image URL: https://gitlab.cs.fau.de/%{project_path}/badges/%{default_branch}/build.svg # # e.g.: https://gitlab.cs.fau.de/thorsten/coalgpartref/-/jobs/artifacts/master/browse?job=compile_latex # #environment: # name: Recent PDFs # url: https://gitlab.cs.fau.de/$CI_PROJECT_PATH/builds/$CI_BUILD_ID/artifacts/browse