about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2022-04-30 11:33:04 +0000
committerAlan Pearce2022-04-30 11:33:04 +0000
commitc4ef8f60a587a0adbfe90b7de1878f66847efe97 (patch)
tree7627f88f8567920ddd1305a03e26c270a8e15aaa
parent12311302860c7d937d0cd4c4307d82bef1502eec (diff)
downloadwebsite-c4ef8f60a587a0adbfe90b7de1878f66847efe97.tar.lz
website-c4ef8f60a587a0adbfe90b7de1878f66847efe97.tar.zst
website-c4ef8f60a587a0adbfe90b7de1878f66847efe97.zip
Add GitLab CI setup
-rw-r--r--.gitlab-ci.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e7b75cd --- /dev/null +++ b/.gitlab-ci.yml
@@ -0,0 +1,27 @@
1---
2variables:
3 # This variable will ensure that the CI runner pulls in your theme from the submodule
4 GIT_SUBMODULE_STRATEGY: recursive
5 ALPINE_VERSION: 3.15
6
7image: alpine:$ALPINE_VERSION
8
9test:
10 script:
11 - zola
12 except:
13 variables:
14 - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
15
16pages:
17 script:
18 # Install the zola package from the alpine community repositories
19 - apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/v$ALPINE_VERSION/community/ zola=~0.14
20 # Execute zola build
21 - zola build
22 artifacts:
23 paths:
24 - public
25 only:
26 variables:
27 - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH