45 lines
1.5 KiB
YAML
45 lines
1.5 KiB
YAML
|
---
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
|
||
|
platform:
|
||
|
os: linux
|
||
|
arch: amd64
|
||
|
|
||
|
steps:
|
||
|
- name: build pdf
|
||
|
image: pandoc/latex:2.14.2
|
||
|
commands:
|
||
|
- apk add --no-cache make ttf-linux-libertine
|
||
|
- 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
|
||
|
- mv tutorial/2/tutorial-2.pdf tutorial/2/tutorial-2-clair.pdf dist/
|
||
|
- 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
|
||
|
- mv tutorial/5/tutorial.pdf dist/tutorial-5.pdf
|
||
|
- 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
|