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:
|
||||
- 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
|
||||
|
|
Loading…
Reference in New Issue