Refactor and improve existing CI logic and switch to official images
This commit is contained in:
parent
2d5f282419
commit
e019ca5291
1 changed files with 12 additions and 8 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue