my-website/.gitlab-ci.yml

33 lines
843 B
YAML

variables:
GIT_SUBMODULE_STRATEGY: recursive
pages:
image: archlinux:latest
interruptible: true
timeout: 5m
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 --version
- zola build
artifacts:
paths:
- public
exclude:
- public/404.html
merge-request-testing:
image: archlinux:latest
interruptible: true
timeout: 5m
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always
before_script:
- pacman --needed --noconfirm --sync --refresh --sysupgrade zola
script:
- zola --version
- zola build