33 lines
648 B
YAML
33 lines
648 B
YAML
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: cbrgm/drone-hugo:latest
|
|
hugoVersion: 0.52
|
|
validate: true
|
|
theme: geeklab
|
|
when:
|
|
branch: master
|
|
event: push
|
|
|
|
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
|
|
when:
|
|
branch: master
|
|
event: push
|