pipeline:
build-draft:
image: cbrgm/drone-hugo:latest
hugoVersion: 0.52
validate: true
buildDrafts: true
buildExpired: true
buildFuture: true
theme: geeklab
when:
branch: draft
event: push
build-prod:
image: alpine
command:
- wget https://github.com/gohugoio/hugo/releases/download/v0.52/hugo_0.52_Linux-64bit.tar.gz -O - | tar -xz
- ./hugo version
branch: master
publish:
image: appleboy/drone-scp
source: public/*
target: /var/www/virtual/geeklab/html/geeklabor.de/
secrets: [ ssh_host, ssh_username, ssh_key ]
strip_components: 1
rm: true