Deploy site using 'scp' #3
27
.drone.yml
27
.drone.yml
|
@ -5,22 +5,23 @@ type: docker
|
|||
name: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: plugins/hugo
|
||||
|
||||
- name: deploy
|
||||
image: alpine:3.12
|
||||
volumes:
|
||||
- name: site
|
||||
path: /var/www/html
|
||||
commands:
|
||||
- apk add --no-cache hugo
|
||||
- hugo
|
||||
- cp -r public/* /var/www/html
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host: dragon.luj0ga.de
|
||||
username: www
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
passphrase:
|
||||
from_secret: ssh_passphrase
|
||||
target: /srv/www/sites/www.franconian.net/
|
||||
source: public/*
|
||||
rm: yes
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
branch:
|
||||
- main
|
||||
|
||||
volumes:
|
||||
- name: site
|
||||
host:
|
||||
path: /srv/www/sites/www.franconian.net
|
||||
|
|
Loading…
Reference in New Issue