2020-10-06 01:32:06 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2020-11-13 18:29:20 +01:00
|
|
|
- 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
|
2020-11-13 18:29:20 +01:00
|
|
|
|
2021-12-21 01:13:31 +01:00
|
|
|
- name: deploy-staging
|
2020-11-13 18:29:20 +01:00
|
|
|
image: appleboy/drone-scp
|
2021-12-21 01:29:53 +01:00
|
|
|
settings: &deploy-settings
|
2023-03-14 20:20:16 +01:00
|
|
|
host: pink.hackerspace-bamberg.de
|
2022-11-05 20:08:01 +01:00
|
|
|
port: 4222
|
|
|
|
username: www-data
|
2020-11-13 18:29:20 +01:00
|
|
|
key:
|
|
|
|
from_secret: ssh_key
|
|
|
|
passphrase:
|
|
|
|
from_secret: ssh_passphrase
|
2022-11-05 20:08:01 +01:00
|
|
|
target: /var/www/staging.www.franconian.net/
|
2020-11-13 18:29:20 +01:00
|
|
|
source: public/*
|
2020-11-13 19:21:04 +01:00
|
|
|
strip_components: 1
|
2020-11-13 18:29:20 +01:00
|
|
|
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
|
2022-11-05 20:08:01 +01:00
|
|
|
target: /var/www/www.franconian.net/
|
2020-10-09 21:09:48 +02:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
branch:
|
2020-10-09 21:11:17 +02:00
|
|
|
- main
|