--- kind: pipeline type: docker name: default steps: - name: build image: plugins/hugo 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: &deploy-settings host: dragon.luj0ga.de username: www key: from_secret: ssh_key passphrase: from_secret: ssh_passphrase 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: <<: *deploy-settings target: /srv/www/sites/www.franconian.net/ when: event: - push branch: - main