-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
47 lines (44 loc) · 1.03 KB
/
.gitlab-ci.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
40
41
42
43
44
45
46
47
# image: "pandoc/core"
# Run a Markdown linter
markmedown:
stage: test
image: registry.gitlab.com/06kellyjac/docker_markdownlint-cli:0.23.0-alpine
script:
- markdownlint .
# Convert the README to a PDF.
icanhazpdf:
image: "auchida/markdown-pdf"
stage: build
script:
- mkdir -p public
- markdown-pdf -o public/readme.pdf README.md
artifacts:
paths:
- public
only:
changes:
- README.md
- .gitlab-ci.yml
# Use pandoc to convert the README to HTML.
pages:
allow_failure: false
environment:
name: production
url: https://ldap.brie.dev
image:
name: "pandoc/core"
entrypoint: [""]
stage: deploy
needs: ["icanhazpdf","markmedown"]
# CSS: https://benjam.info/panam/styling.css
script:
- mkdir -p public
- cp web/styling.css public/
- pandoc --css=styling.css -s -f markdown --toc --metadata pagetitle="awesome ldap | GitLab.com/brie" --to=html5 README.md -o public/index.html
artifacts:
paths:
- public
only:
changes:
- README.md
- .gitlab-ci.yml