You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
my-website/.gitlab-ci.yml

32 lines
816 B

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
- public/sitemap.xml
- public/robots.txt
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