switch to new drone syntax
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-01-13 15:58:22 +01:00
parent 247ed44702
commit 549537aea1

View File

@ -1,5 +1,10 @@
pipeline: ---
build-draft: kind: pipeline
name: default
steps:
- name: build-draft
image: plugins/hugo image: plugins/hugo
hugoVersion: 0.52 hugoVersion: 0.52
validate: true validate: true
@ -11,7 +16,7 @@ pipeline:
branch: draft branch: draft
event: push event: push
build: - name: build
image: plugins/hugo image: plugins/hugo
hugoVersion: 0.52 hugoVersion: 0.52
validate: true validate: true
@ -21,11 +26,17 @@ pipeline:
branch: master branch: master
event: push event: push
publish: - name: publish
image: appleboy/drone-scp image: appleboy/drone-scp
source: public/* source: public/*
target: /var/www/virtual/geeklab/html/geeklabor.de/ target: /var/www/virtual/geeklab/html/geeklabor.de/
secrets: [ ssh_host, ssh_username, ssh_key ] environment:
SSH_HOST:
from_secret: ssh_host
SSH_USERNAME:
from_secret: ssh_username
SSH_KEY:
from_secret: ssh_key
strip_components: 1 strip_components: 1
rm: true rm: true
when: when: