1
0
Fork 0

Update drone config
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luca 2022-11-05 20:02:51 +01:00
parent f20cf1ec5b
commit e463d8d4e8
1 changed files with 20 additions and 12 deletions

View File

@ -6,16 +6,24 @@ name: default
steps:
- name: build
image: alpine:3.12
volumes:
- name: site
path: /tmp/site
commands:
- apk add --no-cache hugo
- hugo
- cp -r public/* /tmp/site/
image: klakegg/hugo:ext-alpine-ci
volumes:
- name: site
host:
path: /srv/www/sites/www.luj0ga.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/www.luj0ga.de/
source: public/*
strip_components: 1
rm: yes
when:
event:
- push
branch:
- master