Update drone config
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f20cf1ec5b
commit
e463d8d4e8
32
.drone.yml
32
.drone.yml
|
@ -6,16 +6,24 @@ name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: alpine:3.12
|
image: klakegg/hugo:ext-alpine-ci
|
||||||
volumes:
|
|
||||||
- name: site
|
|
||||||
path: /tmp/site
|
|
||||||
commands:
|
|
||||||
- apk add --no-cache hugo
|
|
||||||
- hugo
|
|
||||||
- cp -r public/* /tmp/site/
|
|
||||||
|
|
||||||
volumes:
|
- name: deploy
|
||||||
- name: site
|
image: appleboy/drone-scp
|
||||||
host:
|
settings:
|
||||||
path: /srv/www/sites/www.luj0ga.de
|
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
|
||||||
|
|
Loading…
Reference in New Issue