2024-01-03 00:19:58 -05:00
|
|
|
spec:
|
|
|
|
inputs:
|
|
|
|
theme:
|
|
|
|
default: hugo-book
|
|
|
|
root:
|
|
|
|
default: content
|
2024-01-03 00:21:10 -05:00
|
|
|
---
|
2024-01-03 00:21:47 -05:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
HUGO_ENV: production
|
2024-01-02 18:52:03 -05:00
|
|
|
setup-hugo:
|
2024-01-03 00:14:39 -05:00
|
|
|
tags:
|
|
|
|
- docker
|
2024-01-02 18:52:03 -05:00
|
|
|
stage: setup-hugo
|
|
|
|
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
|
|
|
|
script:
|
|
|
|
- cd ${CI_PROJECT_DIR}
|
2024-01-03 00:27:17 -05:00
|
|
|
- ls -l content
|
|
|
|
- ls -l themes/hugo-book
|
2024-01-03 00:19:58 -05:00
|
|
|
- hugo --minify -t $[[ inputs.theme ]] -c $[[ inputs.root ]]
|
2024-01-02 22:26:15 -05:00
|
|
|
artifacts:
|
2024-01-02 22:28:20 -05:00
|
|
|
paths:
|
|
|
|
- public
|
2024-01-02 18:52:03 -05:00
|
|
|
|
|
|
|
# runs:
|
|
|
|
# using: 'node16'
|
|
|
|
# main: 'lib/index.js'
|
|
|
|
# branding:
|
|
|
|
# icon: 'package'
|
|
|
|
# color: 'yellow'
|