drone: switch to alpine with downloaded hugo
the build failed Details

This commit is contained in:
Robert Kaussow 2018-12-20 10:14:05 +01:00
parent 9dd0944af0
commit ea40f22534
1 changed files with 6 additions and 8 deletions

View File

@ -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