Build staging site with correct url
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f9d379e830
commit
2f8ea74a3d
19
.drone.yml
19
.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:
|
||||
|
|
Loading…
Reference in New Issue