-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
39 lines (36 loc) · 911 Bytes
/
docker-compose.yml
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
# Reusable options
x-base: &cv-base
image: asciidoctor/docker-asciidoctor:1.77.0
user: ${CURRENT_UID}
volumes:
- ./src:/documents
- ./dist:/dist
services:
html:
<<: *cv-base
command: >
asciidoctor /documents/index.adoc
-a cv-url="${CV_URL}"
-a source-url="${SOURCE_URL}"
-a short-owner-name="${SHORT_OWNER_NAME}"
-a toc=left
-a toclevels=2
-o /dist/index.html
pdf:
<<: *cv-base
command: >
asciidoctor-pdf /documents/index.adoc
-a cv-url="${CV_URL}"
-a source-url="${SOURCE_URL}"
-a short-owner-name="${SHORT_OWNER_NAME}"
-o /dist/cv-"${SHORT_OWNER_NAME}".pdf
test:
image: klakegg/html-proofer:3.19.2
command: >
--check-html
--http-status-ignore "999"
--url-ignore "/localhost:/,/127.0.0.1:/"
/dist/index.html
user: ${CURRENT_UID}
volumes:
- ./dist:/dist