2021-07-13 15:50:05 +02:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
|
2021-06-13 22:22:13 +02:00
|
|
|
pages:
|
2021-07-13 15:40:13 +02:00
|
|
|
image: archlinux:latest
|
2021-06-13 22:22:13 +02:00
|
|
|
interruptible: true
|
2021-07-13 15:40:13 +02:00
|
|
|
rules:
|
2021-07-14 00:05:00 +02:00
|
|
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH'
|
2021-07-14 00:01:41 +02:00
|
|
|
when: always
|
2021-06-13 22:22:13 +02:00
|
|
|
before_script:
|
2021-07-13 16:00:53 +02:00
|
|
|
- pacman --needed --noconfirm --sync --refresh --sysupgrade zola
|
2021-06-13 22:22:13 +02:00
|
|
|
script:
|
2021-07-20 13:26:01 +02:00
|
|
|
- zola --version
|
2021-06-13 22:22:13 +02:00
|
|
|
- zola build
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
2021-07-13 15:40:13 +02:00
|
|
|
exclude:
|
|
|
|
- public/404.html
|
2021-06-14 10:47:23 +02:00
|
|
|
|
|
|
|
basic-zola-test:
|
2021-07-13 15:40:13 +02:00
|
|
|
image: archlinux:latest
|
2021-06-14 10:47:23 +02:00
|
|
|
interruptible: true
|
2021-07-13 15:40:13 +02:00
|
|
|
rules:
|
2021-07-14 00:05:00 +02:00
|
|
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
2021-07-14 00:01:41 +02:00
|
|
|
when: always
|
2021-06-14 10:47:23 +02:00
|
|
|
before_script:
|
2021-07-13 16:00:53 +02:00
|
|
|
- pacman --needed --noconfirm --sync --refresh --sysupgrade zola
|
2021-06-14 10:47:23 +02:00
|
|
|
script:
|
2021-07-20 13:26:01 +02:00
|
|
|
- zola --version
|
2021-06-14 10:47:23 +02:00
|
|
|
- zola build
|