Commit 4ed5885c authored by Florent Chehab's avatar Florent Chehab

Testing other CI config

parent 66218419
Pipeline #21652 passed with stage
in 15 seconds
image: blang/latex
building-latex-master:
building-latex:
stage: build
script:
- latexmk -pdf main.tex
artifacts:
paths:
- "*.pdf"
expire_in: 2 year
only:
- master
expire_in: 2 weeks
tags:
- docker
building-latex-other-branch:
stage: build
publish-to-gitlab-pages:
stage: deploy
script:
- latexmk -pdf main.tex
- mkdir .public
- cp main.pdf .public
- mv .public public
artifacts:
paths:
- "*.pdf"
- public
expire_in: 2 week
except:
only:
- master
tags:
- docker
\ No newline at end of file
......@@ -84,6 +84,42 @@ building-latex-other-branch:
- docker
```
### Autre possibilité
Il pourrait être plus simple et moins coûteux en espace disque d'utiliser GitLab pages pour la publication des PDF compilés.
**Attention les données disponibles sur GitLab Pages sont publiques même si le projet est privé !**
Voici un exemple de `.gitlab-ci.yml` pour répondre à ce cas d'utilisation :
```yaml
image: blang/latex
building-latex:
stage: build
script:
- latexmk -pdf main.tex
artifacts:
paths:
- "*.pdf"
expire_in: 2 weeks
tags:
- docker
publish-to-gitlab-pages:
stage: deploy
script:
- mkdir .public
- cp main.pdf .public
- mv .public public
artifacts:
paths:
- public
expire_in: 2 week
only:
- master
tags:
- docker
```
### Pour aller plus loin
......
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