-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
60 lines (57 loc) · 1.22 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
48
49
50
51
52
53
54
55
56
57
58
59
60
before_script:
- echo "Set file rights..."
- chmod +x build.sh
- chmod +x install.sh
- echo "Install requirements..."
- apk update
- apk add --no-cache git
stages:
- build
- deploy
build:
stage: build
image: node:19-alpine
script:
# Java
- apk add --no-cache openjdk11
- apk add --no-cache graphviz
- apk add --no-cache fontconfig ttf-dejavu
# Jekyll
- apk add --no-cache jekyll
# Version checks
- echo "Version check:"
- node --version
- npm --version
- java -version
- jekyll --version
# FHIR
- npm install -g fsh-sushi
# FHIR IG Publisher
- mkdir -p ./input-cache
- wget -O "./input-cache/publisher.jar" "https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar"
# Build the output
- ./build.sh
cache:
paths:
- ./input-cache
- ./output
artifacts:
paths:
- ./output
- ./fsh-generated
pages:
stage: deploy
image: alpine:latest
interruptible: true
rules:
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH == 'development'
script:
- mv ./output ./public
cache:
paths:
- ./output
policy: pull
artifacts:
paths:
- public