30 lines
589 B
YAML
30 lines
589 B
YAML
pipeline:
|
|
build-draft:
|
|
image: cbrgm/drone-hugo:latest
|
|
validate: true
|
|
buildDrafts: true
|
|
buildExpired: true
|
|
buildFuture: true
|
|
theme: geeklab
|
|
when:
|
|
branch: draft
|
|
event: push
|
|
|
|
build-prod:
|
|
image: cbrgm/drone-hugo:latest
|
|
validate: true
|
|
theme: geeklab
|
|
when:
|
|
branch: master
|
|
event: push
|
|
|
|
publish:
|
|
image: appleboy/drone-scp
|
|
host: machholz.uberspace.de
|
|
source: public/*
|
|
target: /var/www/virtual/geeklab/html/geeklabor.de/
|
|
secrets: [ ssh_username, ssh_key ]
|
|
when:
|
|
branch: master
|
|
event: push
|