www.iger.events/.drone.yml

58 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2022-07-02 15:55:22 +02:00
---
kind: pipeline
type: docker
name: default
steps:
2022-11-05 20:26:02 +01:00
# - name: fetch-schedule
# image: python:3.10-alpine
# commands:
# - bin/fetch_schedule.py
2022-07-02 15:55:22 +02:00
- name: build
2022-07-09 22:10:17 +02:00
image: klakegg/hugo:ext-alpine-ci
2022-07-02 15:55:22 +02:00
when:
branch:
- live
- name: build-staging
image: klakegg/hugo:ext-alpine-ci
commands:
- hugo --baseURL="https://staging.www.iger.events/"
2022-07-02 15:55:22 +02:00
when:
branch:
exclude:
- live
- name: deploy
image: appleboy/drone-scp
settings: &deploy-settings
2023-03-14 20:21:02 +01:00
host: pink.hackerspace-bamberg.de
2022-11-05 20:17:03 +01:00
port: 4222
2022-07-02 15:55:22 +02:00
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