Cache repository to speed up CI runtime
This commit is contained in:
parent
f52bb32cce
commit
ba734e5463
1 changed files with 10 additions and 2 deletions
|
@ -2,11 +2,19 @@ clone:
|
||||||
git:
|
git:
|
||||||
image: bash
|
image: bash
|
||||||
commands:
|
commands:
|
||||||
|
- 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
|
- git clone --recursive https://git.exozy.me/Ta180m/website.git
|
||||||
|
- fi
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: bash
|
image: bash
|
||||||
commands:
|
commands:
|
||||||
- cd website
|
- cd /var/lib/woodpecker-agent/Ta180m/website
|
||||||
- hugo --minify --destination /srv/http/pages/ta180m
|
- hugo --minify --destination /srv/http/pages/ta180m
|
||||||
|
|
Loading…
Reference in a new issue