Add .drone.yml
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
0282d972d1
commit
7c8d2eadd1
|
@ -0,0 +1,56 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: plugins/hugo
|
||||||
|
settings: &build-settings
|
||||||
|
extended: yes
|
||||||
|
validate: yes
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- live
|
||||||
|
|
||||||
|
- name: build-staging
|
||||||
|
image: plugins/hugo
|
||||||
|
settings:
|
||||||
|
<<: *build-settings
|
||||||
|
url: https://staging.www.iger.events/
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- live
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
image: appleboy/drone-scp
|
||||||
|
settings: &deploy-settings
|
||||||
|
host: apple.franconian.net
|
||||||
|
port: 2222
|
||||||
|
username: www-data
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
passphrase:
|
||||||
|
from_secret: ssh_passphrase
|
||||||
|
target: /var/www/www.iger.events/
|
||||||
|
source: public/*
|
||||||
|
strip_components: 1
|
||||||
|
rm: yes
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
branch:
|
||||||
|
- live
|
||||||
|
|
||||||
|
- name: deploy-staging
|
||||||
|
image: appleboy/drone-scp
|
||||||
|
settings:
|
||||||
|
<<: *deploy-settings
|
||||||
|
target: /var/www/staging.www.iger.events/
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
branch:
|
||||||
|
- main
|
Loading…
Reference in New Issue