From 549537aea1bf4eec37ba040a9c3a4542ea90ef0c Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 13 Jan 2019 15:58:22 +0100 Subject: [PATCH] switch to new drone syntax --- .drone.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3cd3fab..df7dea3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: