Use a more secure(tm) method for deployment
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
1248934ffa
commit
200fa9aaf0
27
.drone.yml
27
.drone.yml
|
@ -5,22 +5,23 @@ type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: plugins/hugo
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: alpine:3.12
|
image: appleboy/drone-scp
|
||||||
volumes:
|
settings:
|
||||||
- name: site
|
host: dragon.luj0ga.de
|
||||||
path: /var/www/html
|
username: www
|
||||||
commands:
|
key:
|
||||||
- apk add --no-cache hugo
|
from_secret: ssh_key
|
||||||
- hugo
|
passphrase:
|
||||||
- cp -r public/* /var/www/html
|
from_secret: ssh_passphrase
|
||||||
|
target: /srv/www/sites/www.franconian.net/
|
||||||
|
source: public/*
|
||||||
|
rm: yes
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: site
|
|
||||||
host:
|
|
||||||
path: /srv/www/sites/www.franconian.net
|
|
||||||
|
|
Loading…
Reference in New Issue