Add drone config

This commit is contained in:
Luca 2023-03-12 00:14:05 +01:00
parent b24fc9d3a5
commit aba952f0d7
1 changed files with 31 additions and 0 deletions

31
.drone.yml Normal file
View File

@ -0,0 +1,31 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: klakegg/hugo:ext-alpine-ci
commands:
- hugo --baseURL="https://staging.www.kontakt-bamberg.de/"
- name: deploy
image: appleboy/drone-scp
settings:
host: dragon.luj0ga.de
port: 4222
username: www-data
key:
from_secret: ssh_key
passphrase:
from_secret: ssh_passphrase
target: /var/www/staging.www.kontakt-bamberg.de/
source: public/*
strip_components: 1
rm: yes
when:
event:
- push
branch:
- main