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