This repository has been archived on 2023-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.zone/.gitlab-ci.yml
Anna Sidwell adcd1ceec4 Revise CI
- deploy using GitLab pages
- use jekyll image rather than installing loads of stuff manually
- gzip static resources for better performance
2019-11-14 00:27:02 +00:00

29 lines
540 B
YAML

stages:
- deploy
variables:
GIT_DEPTH: 1
pages:
image: jekyll/jekyll:3.6
stage: deploy
script:
- rm Gemfile
- jekyll build -d public
- apk add gzip --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
- gzip -v -k -6 $(find public -name '*.js' -o -name '*.html' -o -name '*.css')
artifacts:
paths:
- public
only:
- master
test with latest jekyll:
image: jekyll/jekyll:latest
stage: deploy
script:
- rm Gemfile
- jekyll build -d public