---
kind: pipeline
name: default
steps:
- name: build-draft
image: plugins/hugo
settings:
hugoVersion: 0.53
validate: true
buildDrafts: true
buildExpired: true
buildFuture: true
theme: geeklab
when:
branch: [ draft ]
event: [ push ]
- name: build
branch: [ master ]
- name: publish
image: appleboy/drone-scp
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
- name: notify
image: plugins/matrix
homeserver: https://matrix.rknet.org
roomid: MtidqQXWWAtQcByBhH:rknet.org
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
from_secret: matrix_username
password:
from_secret: matrix_password
status:
- success
- failure