Skip to content

Commit 9d8b5e6

Browse files
committed
build: use earthly as local build system
1 parent f5538f3 commit 9d8b5e6

File tree

2 files changed

+44
-75
lines changed

2 files changed

+44
-75
lines changed

Earthfile

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
all:
2+
BUILD +test
3+
BUILD +build
4+
5+
test:
6+
BUILD +test-super-linter
7+
BUILD +test-textidote
8+
9+
test-super-linter:
10+
FROM github/super-linter:slim-v4.5.0
11+
ENV RUN_LOCAL="true"
12+
ENV MULTI_STATUS="false"
13+
ENV VALIDATE_ALL_CODEBASE="true"
14+
ENV VALIDATE_EDITORCONFIG="true"
15+
ENV VALIDATE_MD="true"
16+
ENV VALIDATE_YAML="true"
17+
ENV FILTER_REGEX_EXCLUDE=".*/(CHANGELOG\.md)"
18+
ENV DEFAULT_WORKSPACE="/opt/resume"
19+
WORKDIR /opt/resume
20+
COPY --dir . ./
21+
RUN /action/lib/linter.sh
22+
23+
test-textidote:
24+
FROM gokhlayeh/textidote:v4.1
25+
WORKDIR /opt/resume
26+
COPY --dir src .textidote dict.txt ./
27+
RUN ls -al src
28+
RUN ls -al
29+
RUN /entrypoint.sh /opt/resume/src/resume.tex /opt/resume plain "" 0
30+
31+
build:
32+
FROM ghcr.io/xu-cheng/texlive-full:20210701
33+
WORKDIR /opt/resume
34+
COPY --dir src ./
35+
RUN latexmk \
36+
-cd \
37+
-lualatex \
38+
--file-line-error \
39+
--halt-on-error \
40+
--interaction=nonstopmode \
41+
-recorder \
42+
-output-directory=/opt/resume \
43+
/opt/resume/src/resume.tex
44+
SAVE ARTIFACT ./resume.pdf AS LOCAL ./resume.pdf

Makefile

-75
This file was deleted.

0 commit comments

Comments
 (0)