From b0db369c159dbd3971d4b226df3ed1a93956976f Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Fri, 1 Dec 2023 03:50:40 +0100 Subject: [PATCH] Update .drone.yml --- .drone.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 25720bc..25e3cb8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,9 +14,28 @@ steps: hosts: ["s3.fofrweb.com"] user: drone source: public/* - target: /srv/www/cz/pkmples/$BRANCH/ + target: /srv/www/cz/pkmples/www/ recursive: true delete: true environment: RSYNC_KEY: from_secret: rsync_private_key + when: + branch: + - master + + - name: deploy + image: drillster/drone-rsync + settings: + hosts: ["s3.fofrweb.com"] + user: drone + source: public/* + target: /srv/www/cz/pkmples/dev/ + recursive: true + delete: true + environment: + RSYNC_KEY: + from_secret: rsync_private_key + when: + branch: + - dev