Cache repository to speed up CI runtime
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
352f5ab7d8
commit
837aa32c97
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue