switch to new drone syntax
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Robert Kaussow 2019-01-13 15:58:22 +01:00
parent 247ed44702
commit 549537aea1
1 changed files with 16 additions and 5 deletions

View File

@ -1,5 +1,10 @@
pipeline:
build-draft:
---
kind: pipeline
name: default
steps:
- name: build-draft
image: plugins/hugo
hugoVersion: 0.52
validate: true
@ -11,7 +16,7 @@ pipeline:
branch: draft
event: push
build:
- name: build
image: plugins/hugo
hugoVersion: 0.52
validate: true
@ -21,11 +26,17 @@ pipeline:
branch: master
event: push
publish:
- name: publish
image: appleboy/drone-scp
source: public/*
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
rm: true
when: