diff --git a/.drone.yml b/.drone.yml index dc8c458..2c2c3bd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,13 +12,14 @@ steps: - apk add hugo - hugo - name: publish - image: alpine:3 - volumes: - - name: blog - path: /mnt/blog/ - commands: - - cp -r public/* /mnt/blog/ -volumes: -- name: blog - host: - path: /var/www/blog.ndumas.com + image: drillster/drone-rsync + settings: + key: + from_secret: blog_sync_key + user: blog + delete: true + recursive: true + hosts: ["blog.ndumas.com"] + source: ./public/ + target: /var/www/blog.ndumas.com + include: ["*"]