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