Cache repository to speed up CI runtime
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Anthony Wang 2022-02-13 11:15:22 -06:00
parent 352f5ab7d8
commit 837aa32c97
Signed by: exogit
GPG key ID: 1DDC6BC38786C595

View file

@ -2,18 +2,26 @@ clone:
git:
image: bash
commands:
- git clone --recursive https://git.exozy.me/Ta180m/howtuwu.git
- 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 howtuwu/themes/hugo-geekdoc
- cd /var/lib/woodpecker-agent/Ta180m/howtuwu/themes/hugo-geekdoc
- npm install
- npm run build
build:
image: bash
commands:
- cd howtuwu
- cd /var/lib/woodpecker-agent/Ta180m/howtuwu
- hugo --minify --destination /srv/http/pages/howtuwu