From 292cf0d4af30992577455ccabfee2c0a9d4d7323 Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Wed, 8 Jan 2020 12:52:20 +0100 Subject: [PATCH] maybe with the new format --- .drone.yml | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/.drone.yml b/.drone.yml index b4219ec..b820e6e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,20 +1,24 @@ -pipeline: - clone: - image: plugins/git - recursive: true - submodule_override: - toasted-cactus: https://git.schneider-hosting.de/schneider/toasted-cactus.git - build: - image: cbrgm/drone-hugo:latest - validate: true - output: public/drone-generated - url: https://rezept-schneider.de +kind: pipeline +type: docker +name: default - deploy: - image: drillster/drone-rsync - hosts: [ "rezept-schneider.de" ] - target: /var/www/html/rezeptschneider/public/ - source: public/drone-generated/ - user: deploy-rezept - secrets: [ rsync_key ] +steps: + - name: submodules + image: alpine/git + commands: + - git submodule update --recursive --remote + + - name: build + image: cbrgm/drone-hugo:latest + validate: true + output: public/drone-generated + url: https://rezept-schneider.de + + - name: deploy + image: drillster/drone-rsync + hosts: [ "rezept-schneider.de" ] + target: /var/www/html/rezeptschneider/public/ + source: public/drone-generated/ + user: deploy-rezept + secrets: [ rsync_key ]