From 5124d98a3e39a405e34611796f13545f18e2ce73 Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 21 Apr 2021 11:13:55 +0200 Subject: [PATCH] add build & deploy pipeline --- .drone.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) 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