From f9d379e830cd090d97a46ccd7b7533a85ffc26f9 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 21 Dec 2021 01:13:31 +0100 Subject: [PATCH] Add pipeline step 'deploy-staging' --- .drone.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 49fd164..e99f34e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,19 +11,30 @@ steps: extended: yes validate: yes - - name: deploy + - name: deploy-staging image: appleboy/drone-scp - settings: + settings: &settings host: dragon.luj0ga.de username: www key: from_secret: ssh_key passphrase: from_secret: ssh_passphrase - target: /srv/www/sites/www.franconian.net/ + target: /srv/www/sites/staging.www.franconian.net/ source: public/* strip_components: 1 rm: yes + when: + event: + - push + branch: + - staging + + - name: deploy + image: appleboy/drone-scp + settings: + <<: *settings + target: /srv/www/sites/www.franconian.net/ when: event: - push