#
# Publish GO HUGO GitLab Pages Site using Go Modules option
# Themes and template reference using GO Module system
#
stages:
- test

build:
  image: registry.gitlab.com/pages/hugo/hugo_extended:latest
  stage: test
  before_script:
  # Add Go Module dependencies
  - apk --no-cache add git
  - apk --no-cache add go
  script:
  # Test Site Generation Templates
  - hugo --config test/test-config.yml
  only:
  - dev