www.franconian.net/.drone.yml

56 lines
1.0 KiB
YAML
Raw Normal View History

2020-10-06 01:32:06 +02:00
---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: plugins/hugo
2021-12-21 01:29:53 +01:00
settings: &build-settings
2020-11-13 18:53:46 +01:00
extended: yes
validate: yes
2021-12-21 01:29:53 +01:00
when:
branch:
exclude:
- staging
- name: build-staging
image: plugins/hugo
settings:
<<: *build-settings
url: https://staging.www.franconian.net/
when:
branch:
- staging
2021-12-21 01:13:31 +01:00
- name: deploy-staging
image: appleboy/drone-scp
2021-12-21 01:29:53 +01:00
settings: &deploy-settings
host: dragon.luj0ga.de
username: www
key:
from_secret: ssh_key
passphrase:
from_secret: ssh_passphrase
2021-12-21 01:13:31 +01:00
target: /srv/www/sites/staging.www.franconian.net/
source: public/*
strip_components: 1
rm: yes
2021-12-21 01:13:31 +01:00
when:
event:
- push
branch:
- staging
- name: deploy
image: appleboy/drone-scp
settings:
2021-12-21 01:29:53 +01:00
<<: *deploy-settings
2021-12-21 01:13:31 +01:00
target: /srv/www/sites/www.franconian.net/
when:
event:
- push
branch:
2020-10-09 21:11:17 +02:00
- main