Refactor and improve existing CI logic and switch to official images

This commit is contained in:
Jonas Tobias Hopusch 2021-07-13 15:40:13 +02:00
parent 2d5f282419
commit e019ca5291
Failed to generate hash of commit

View file

@ -1,23 +1,27 @@
pages: pages:
image: agners/archlinuxarm-arm64v8:latest image: archlinux:latest
interruptible: true interruptible: true
only: rules:
- master - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
before_script: before_script:
- pacman --needed --noconfirm -Syu zola - pacman --needed --noconfirm -Syu zola
script: script:
- zola build - 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: artifacts:
paths: paths:
- public - public
exclude:
- public/404.html
- public/sitemap.xml
- public/robots.txt
basic-zola-test: basic-zola-test:
image: agners/archlinuxarm-arm64v8:latest image: archlinux:latest
interruptible: true interruptible: true
except: rules:
- master - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: never
before_script: before_script:
- pacman --needed --noconfirm -Syu zola - pacman --needed --noconfirm -Syu zola
script: script: