From 2f8ea74a3d5dfa813617739c3c0805410a3b334e Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 21 Dec 2021 01:29:53 +0100 Subject: [PATCH] Build staging site with correct url --- .drone.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index e99f34e..95093ed 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,13 +7,26 @@ name: default steps: - name: build image: plugins/hugo - settings: + settings: &build-settings extended: yes validate: yes + when: + branch: + exclude: + - staging + + - name: build-staging + image: plugins/hugo + settings: + <<: *build-settings + url: https://staging.www.franconian.net/ + when: + branch: + - staging - name: deploy-staging image: appleboy/drone-scp - settings: &settings + settings: &deploy-settings host: dragon.luj0ga.de username: www key: @@ -33,7 +46,7 @@ steps: - name: deploy image: appleboy/drone-scp settings: - <<: *settings + <<: *deploy-settings target: /srv/www/sites/www.franconian.net/ when: event: