28 lines
659 B
YAML
28 lines
659 B
YAML
clone:
|
|
git:
|
|
image: bash
|
|
commands:
|
|
- mkdir -p /var/lib/woodpecker-agent/Ta180m
|
|
- cd /var/lib/woodpecker-agent/Ta180m
|
|
- if [ -d howtuwu ]; then
|
|
- cd howtuwu
|
|
- git pull
|
|
- git submodule update
|
|
- else
|
|
- git clone --recursive https://git.exozy.me/Ta180m/howtuwu.git
|
|
- fi
|
|
|
|
pipeline:
|
|
build-theme:
|
|
image: bash
|
|
commands:
|
|
- cd /var/lib/woodpecker-agent/Ta180m/howtuwu/themes/hugo-geekdoc
|
|
- npm install
|
|
- npm run build
|
|
|
|
build:
|
|
image: bash
|
|
commands:
|
|
- cd /var/lib/woodpecker-agent/Ta180m/howtuwu
|
|
- hugo --minify --destination /srv/http/pages/howtuwu
|