Add CI/CD
This commit is contained in:
parent
7c6399bbb5
commit
3d7c03fbbd
|
@ -0,0 +1,44 @@
|
|||
---
|
||||
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
|
|
@ -5,9 +5,9 @@ PANDOCOPTS = --pdf-engine=lualatex \
|
|||
-f markdown+smart \
|
||||
-M fontsize=12pt \
|
||||
-M papersize=a4 \
|
||||
-M mainfont="Linux Libertine O" \
|
||||
-M monofont="FantasqueSansMono-Regular" \
|
||||
-M sansfont="Linux Biolinum O" \
|
||||
-M mainfont="Linux Libertine" \
|
||||
-M monofont="FantasqueSansMono" \
|
||||
-M sansfont="Linux Biolinum" \
|
||||
-M colorlinks=true \
|
||||
-M linkcolor="black" \
|
||||
-M urlcolor="ForestGreen" \
|
||||
|
|
Loading…
Reference in New Issue