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