virli/.drone.yml

45 lines
1.5 KiB
YAML
Raw Normal View History

2021-10-31 19:52:20 +00:00
---
kind: pipeline
type: docker
platform:
os: linux
arch: amd64
steps:
- name: build pdf
2022-04-05 13:59:32 +00:00
image: pandoc/latex:2.18.0
2021-10-31 19:52:20 +00:00
commands:
- apk add --no-cache make ttf-linux-libertine ttf-inconsolata
2021-10-31 19:52:20 +00:00
- tlmgr install enumitem environ etoolbox preprint sectsty selnolig tcolorbox titling
- wget -O /tmp/FantasqueSansMono-Normal.tar.gz https://github.com/belluzj/fantasque-sans/releases/download/v1.8.0/FantasqueSansMono-Normal.tar.gz
- mkdir /usr/share/fonts/fantasque-sans-mono
- tar xf /tmp/FantasqueSansMono-Normal.tar.gz -C /usr/share/fonts/fantasque-sans-mono OTF/ TTF/ --strip-component=1
- mkdir dist
- make -C tutorial/1
- mv tutorial/1/tutorial.pdf dist/tutorial-1.pdf
- make -C tutorial/2
2022-11-14 14:12:30 +00:00
- mv tutorial/2/2-tutorial.pdf tutorial/2/2-tutorial-clair.pdf dist/
2021-10-31 19:52:20 +00:00
- make -C tutorial/3
- mv tutorial/3/tutorial.pdf dist/tutorial-3.pdf
- make -C tutorial/4
- mv tutorial/4/tutorial.pdf dist/tutorial-4.pdf
- make -C tutorial/5
2021-11-19 23:00:30 +00:00
- mv tutorial/5/tutorial-5-srs.pdf tutorial/5/tutorial-5-gistre.pdf dist/
2021-10-31 19:52:20 +00:00
- make -C tutorial/k8s
- mv tutorial/k8s/tutorial.pdf dist/tutorial-6.pdf
- make -C subject/1
- mv subject/1/subject.pdf dist/project-1.pdf
- make -C subject/2
- mv subject/2/subject.pdf dist/project-2.pdf
- make -C subject/nginx-static
- mv subject/nginx-static/subject.pdf dist/project-nginx-static.pdf
- make -C subject/owncloud
- mv subject/owncloud/subject.pdf dist/project-owncloud.pdf
- make -C subject/registry
- mv subject/registry/subject.pdf dist/project-registry.pdf
trigger:
event:
- push