my-website/.gitlab-ci.yml

29 lines
755 B
YAML

variables:
GIT_SUBMODULE_STRATEGY: recursive
pages:
image: archlinux:latest
interruptible: true
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH'
when: always
before_script:
- pacman --needed --noconfirm --sync --refresh --sysupgrade zola
script:
- zola build
artifacts:
paths:
- public
exclude:
- public/404.html
basic-zola-test:
image: archlinux:latest
interruptible: true
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always
before_script:
- pacman --needed --noconfirm --sync --refresh --sysupgrade zola
script:
- zola build