Robert Kaussow
206045607e
All checks were successful
continuous-integration/drone/push Build is passing
47 lines
891 B
YAML
47 lines
891 B
YAML
---
|
|
kind: pipeline
|
|
name: default
|
|
|
|
|
|
steps:
|
|
- name: build-draft
|
|
image: plugins/hugo
|
|
settings:
|
|
hugoVersion: 0.52
|
|
validate: true
|
|
buildDrafts: true
|
|
buildExpired: true
|
|
buildFuture: true
|
|
theme: geeklab
|
|
when:
|
|
branch: [ draft ]
|
|
event: [ push ]
|
|
|
|
- name: build
|
|
image: plugins/hugo
|
|
settings:
|
|
hugoVersion: 0.52
|
|
validate: true
|
|
buildFuture: true
|
|
theme: geeklab
|
|
when:
|
|
branch: [ master ]
|
|
event: [ push ]
|
|
|
|
- name: publish
|
|
image: appleboy/drone-scp
|
|
settings:
|
|
source: public/*
|
|
target: /var/www/virtual/geeklab/html/geeklabor.de/
|
|
host:
|
|
from_secret: ssh_host
|
|
username:
|
|
from_secret: ssh_username
|
|
key:
|
|
from_secret: ssh_key
|
|
strip_components: 1
|
|
rm: true
|
|
when:
|
|
branch: [ master ]
|
|
event: [ push ]
|