28 lines
519 B
YAML
28 lines
519 B
YAML
variables:
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
HUGO_ENV: production
|
|
spec:
|
|
inputs:
|
|
theme:
|
|
default: hugo-book
|
|
root:
|
|
default: content
|
|
---
|
|
setup-hugo:
|
|
tags:
|
|
- docker
|
|
stage: setup-hugo
|
|
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
|
|
script:
|
|
- cd ${CI_PROJECT_DIR}
|
|
- hugo --minify -t $[[ inputs.theme ]] -c $[[ inputs.root ]]
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
|
|
# runs:
|
|
# using: 'node16'
|
|
# main: 'lib/index.js'
|
|
# branding:
|
|
# icon: 'package'
|
|
# color: 'yellow' |