diff --git a/.drone.yml b/.drone.yml index e9e7d84..ba81104 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,3 +17,30 @@ steps: status: - success - failure + +--- +kind: pipeline +type: docker +name: build & deploy + +steps: + - name: build + image: plugins/hugo + settings: + validate: true + extended: true + + - name: deploy + image: drillster/drone-rsync + settings: + hosts: ["www.ducamps.win"] + target: /usr/share/nginx/html/welcome + source: public/* + user: drone-deploy + key: + from_secret: deploy_private_key + when: + branch: + - master + event: + - push