This commit is contained in:
parent
9dd0944af0
commit
ea40f22534
14
.drone.yml
14
.drone.yml
@ -1,11 +1,9 @@
|
||||
pipeline:
|
||||
build-draft:
|
||||
image: cbrgm/drone-hugo:latest
|
||||
hugoVersion: 0.52
|
||||
validate: true
|
||||
buildDrafts: true
|
||||
buildExpired: true
|
||||
buildFuture: true
|
||||
image: alpine
|
||||
commands:
|
||||
- wget https://github.com/gohugoio/hugo/releases/download/v0.52/hugo_0.52_Linux-64bit.tar.gz -q -O - | tar -xz
|
||||
- ./hugo -D -E -F --theme geeklab
|
||||
theme: geeklab
|
||||
when:
|
||||
branch: draft
|
||||
@ -14,8 +12,8 @@ pipeline:
|
||||
build-prod:
|
||||
image: alpine
|
||||
commands:
|
||||
- wget https://github.com/gohugoio/hugo/releases/download/v0.52/hugo_0.52_Linux-64bit.tar.gz -O - | tar -xz
|
||||
- ./hugo version
|
||||
- wget https://github.com/gohugoio/hugo/releases/download/v0.52/hugo_0.52_Linux-64bit.tar.gz -q -O - | tar -xz
|
||||
- ./hugo -F --theme geeklab
|
||||
when:
|
||||
branch: master
|
||||
event: push
|
||||
|
Reference in New Issue
Block a user