From c4ef8f60a587a0adbfe90b7de1878f66847efe97 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 30 Apr 2022 11:33:04 +0000 Subject: Add GitLab CI setup --- .gitlab-ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitlab-ci.yml 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 @@ +--- +variables: + # This variable will ensure that the CI runner pulls in your theme from the submodule + GIT_SUBMODULE_STRATEGY: recursive + ALPINE_VERSION: 3.15 + +image: alpine:$ALPINE_VERSION + +test: + script: + - zola + except: + variables: + - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + +pages: + script: + # Install the zola package from the alpine community repositories + - apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/v$ALPINE_VERSION/community/ zola=~0.14 + # Execute zola build + - zola build + artifacts: + paths: + - public + only: + variables: + - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH -- cgit 1.4.1