-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
30 lines (27 loc) · 880 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
stages:
- lint
- build_and_publish
job_lint_yaml:
tags:
- docker
stage: lint
image: gitlab-registry.cern.ch/db/jeedy/utils/yamllint-docker:1.15.0
script:
- yamllint --version
- yamllint -c yamllint.yml .gitlab-ci.yml goodcheck.yml yamllint.yml
# TODO run goodcheck in pipeline
job_build_and_publish:
variables:
PUBLISHED_PDF_NAME: tloekkeb_voxxeddays_cern_2019_05_01_docker_image_testing_in_gitlab_ci.pdf
stage: build_and_publish
image: blang/latex:ubuntu
script:
- latexmk -shell-escape -interaction=nonstopmode -halt-on-error -output-directory=build -f -pdf main.tex
# move built pdf to root of build so artifact isn't bundled inside build folder
- mv build/main.pdf "${PUBLISHED_PDF_NAME}"
artifacts:
paths:
- "${PUBLISHED_PDF_NAME}"
# set to expire not long after my contract expires
expire_in: 1 yrs