-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEarthfile
More file actions
50 lines (44 loc) · 1.3 KB
/
Earthfile
File metadata and controls
50 lines (44 loc) · 1.3 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
VERSION 0.8
FROM DOCKERFILE --target=pandoc .
configure:
RUN apk --no-cache add \
miniperl \
perl-utils \
perl-log-dispatch \
perl-namespace-autoclean \
perl-specio \
perl-unicode-linebreak \
curl \
wget \
make && \
curl -L https://cpanmin.us/ -o /usr/local/bin/cpanm && \
chmod +x /usr/local/bin/cpanm && \
cpanm -n App::cpanminus && \
cpanm -n File::HomeDir && \
cpanm -n Params::ValidationCompiler && \
cpanm -n YAML::Tiny
RUN tlmgr update --self && \
tlmgr install titlesec latexindent
code:
FROM +configure
COPY . .
pdf:
ARG --required LOCALE
FROM +code
RUN pandoc --pdf-engine=xelatex --include-in-header styles.tex -f gfm ${LOCALE}/barskov-nikita-cv.md -o barskov-nikita-cv_${LOCALE}.pdf
SAVE ARTIFACT /srv/workspace/barskov-nikita-cv_${LOCALE}.pdf AS LOCAL barskov-nikita-cv_${LOCALE}.pdf
fix:
FROM +code
RUN latexindent \
-overwrite \
-modifylinebreaks \
styles.tex
SAVE ARTIFACT /srv/workspace/styles.tex AS LOCAL styles.tex
validate:
FROM +code
RUN latexindent -silent -checkv styles.tex
ci:
BUILD +validate
BUILD +pdf \
--LOCALE en_US \
--LOCALE no_NB