devroom.io/.gitlab-ci.yml

24 lines
507 B
YAML

image: registry.gitlab.com/pages/hugo/hugo_extended:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
pages:
before_script:
- apk add --no-cache file
- apk add --no-cache imagemagick
script:
- hugo
- find ./public -name '*.jpg' -execdir sh -c "mogrify -monitor -sampling-factor 4:2:0 -strip -interlace JPEG -colorspace sRGB -resize 2048 -compress JPEG -quality 80 *.jpg" {} \;
artifacts:
paths:
- public
only:
- master
test:
script:
- hugo
except:
- master