Browse Source

add drone-rsync plugin

main
n0emis 1 year ago
parent
commit
3f0d78e43d
Signed by: n0emis GPG Key ID: 00FAF748B777CF10
  1. 18
      .drone.yml

18
.drone.yml

@ -19,17 +19,15 @@ steps:
commands:
- hugo --minify --destination /drone/src/build
- name: Upload
image: jguyomard/hugo-builder
commands:
- eval `ssh-agent -s`
- echo "$SSH_KEY" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- rsync -rv -e "ssh -6 -p 22" /drone/src/build/ root@pasiphae.int.goe.de.n0emis.eu:/var/www/n0emis.eu/ --checksum
environment:
SSH_KEY:
- name: Deploy
image: drillster/drone-rsync
settings:
hosts:
- v6-pasiphae.int.goe.de.dyn.n0emis.eu
key:
from_secret: ssh_key
source: /drone/src/build/
target: /var/www/n0emis.eu/
trigger:
branch:

Loading…
Cancel
Save