Public | Automated Build

Last pushed: 2 months ago
Short Description
Hugo and html-proofer for Web Development using Alpine Linux
Full Description

If you want to run standalone:

sudo docker run -it --volume=$(pwd):/srv/hugo:Z fzipi/hugo-htmlproofer-alpine hugo -d public
sudo docker run -it --volume=$(pwd):/srv/hugo:Z fzipi/hugo-htmlproofer-alpine htmlproofer ./public --only-4xx --check-html --allow-hash-href

For using in your .gitlab-ci.yml,with gitlab pages:

image: fzipi/hugo-htmlproofer-alpine

variables:
  GIT_STRATEGY: normal

stages:
  - build
  - deploy

generate:
  stage: build
  before_script:
  - git submodule sync
  - git submodule update --init --recursive
  script:
  - hugo -d "test"
  - htmlproofer ./test --only-4xx --check-html --allow-hash-href

pages:
  stage: deploy
  script:
  - hugo -d "public"
  artifacts:
    paths:
    - public
  only:
  - master

This way you check your generated files first, and if it fails don't go into production.

Docker Pull Command
Owner
fzipi
Source Repository