57 lines
1.0 KiB
YAML
57 lines
1.0 KiB
YAML
---
|
|
|
|
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: pink.hackerspace-bamberg.de
|
|
port: 4222
|
|
username: www-data
|
|
key:
|
|
from_secret: ssh_key
|
|
passphrase:
|
|
from_secret: ssh_passphrase
|
|
target: /var/www/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: /var/www/www.franconian.net/
|
|
when:
|
|
event:
|
|
- push
|
|
branch:
|
|
- main
|