my-website/.gitlab-ci.yml

32 lines
805 B
YAML
Raw Normal View History

variables:
GIT_SUBMODULE_STRATEGY: recursive
2021-06-13 22:22:13 +02:00
pages:
image: archlinux:latest
2021-06-13 22:22:13 +02:00
interruptible: true
rules:
- 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:
- zola --version
2021-06-13 22:22:13 +02:00
- zola build
artifacts:
paths:
- public
exclude:
- public/404.html
2021-06-14 10:47:23 +02:00
basic-zola-test:
image: archlinux:latest
2021-06-14 10:47:23 +02:00
interruptible: true
rules:
- 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:
- zola --version
2021-06-14 10:47:23 +02:00
- zola build