Cache repository to speed up CI runtime

This commit is contained in:
Anthony Wang 2022-02-13 10:59:34 -06:00
parent f52bb32cce
commit ba734e5463
Signed by: exogit
GPG key ID: 1DDC6BC38786C595

View file

@ -2,11 +2,19 @@ clone:
git:
image: bash
commands:
- git clone --recursive https://git.exozy.me/Ta180m/website.git
- mkdir -p /var/lib/woodpecker-agent/Ta180m
- cd /var/lib/woodpecker-agent/Ta180m
- if [ -d website ]; then
- cd website
- git pull
- git submodule update
- else
- git clone --recursive https://git.exozy.me/Ta180m/website.git
- fi
pipeline:
build:
image: bash
commands:
- cd website
- cd /var/lib/woodpecker-agent/Ta180m/website
- hugo --minify --destination /srv/http/pages/ta180m