Skip to content

Instantly share code, notes, and snippets.

@kmindi
Last active November 3, 2021 12:20
Show Gist options
  • Select an option

  • Save kmindi/249809cea9a587a5e634e66fe32ebc1c to your computer and use it in GitHub Desktop.

Select an option

Save kmindi/249809cea9a587a5e634e66fe32ebc1c to your computer and use it in GitHub Desktop.
GitLab CI Configuration file for latex with building files in subdirectory with latex runner
compile_pdf:
image: kmindi/latex-docker
script:
- latexmk -C -cd -outdir="M2" -auxdir="M2" M2/M2.tex
- latexmk -lualatex -pdf -cd -outdir="M2" -auxdir="M2" M2/M2.tex
artifacts:
paths:
- "M2/M2.pdf"
expire_in: 1 week
except:
- tags
compile_release_pdf:
image: kmindi/latex-docker
script:
- latexmk -C -cd -outdir="M2" -auxdir="M2" M2/M2.tex
- latexmk -lualatex -pdf -cd -outdir="M2" -auxdir="M2" M2/M2.tex
artifacts:
paths:
- "M2/M2.pdf"
only:
- tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment