Refactor and improve existing CI logic and switch to official images

pull/1/head
parent 2d5f282419
commit e019ca5291
Failed to generate hash of commit
  1. 20
      .gitlab-ci.yml

@ -1,23 +1,27 @@
pages:
image: agners/archlinuxarm-arm64v8:latest
image: archlinux:latest
interruptible: true
only:
- master
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
before_script:
- pacman --needed --noconfirm -Syu zola
script:
- zola build
# Fall back to GitLab pages 404 site and delete unwanted robot pages
- rm public/404.html public/sitemap.xml public/robots.txt
artifacts:
paths:
- public
exclude:
- public/404.html
- public/sitemap.xml
- public/robots.txt
basic-zola-test:
image: agners/archlinuxarm-arm64v8:latest
image: archlinux:latest
interruptible: true
except:
- master
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: never
before_script:
- pacman --needed --noconfirm -Syu zola
script:

Loading…
Cancel
Save