www.franconian.net/.drone.yml

57 lines
1.0 KiB
YAML
Raw Permalink 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
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
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/
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
2022-11-05 20:08:01 +01:00
target: /var/www/www.franconian.net/
when:
event:
- push
branch:
2020-10-09 21:11:17 +02:00
- main