From ba469c6ab4cbf3041af8419bfbd4818c6ce644f6 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Fri, 20 Jul 2018 13:03:33 +0200 Subject: [PATCH] Add prod build --- .drone.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.drone.yml b/.drone.yml index c968d5a..972e018 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,3 +20,26 @@ pipeline: user: hugo secrets: [ rsync_key ] branches: develop + +pipeline: + build: + image: cbrgm/drone-hugo:latest + buildDrafts: false + buildFuture: false + buildExpired: false + validate: true + url: https://www.vbrandl.net + compress: + image: alpine:latest + commands: + - apk --no-cache update + - apk add make + - make -C public/ -f ../Makefile + deploy: + image: drillster/drone-rsync + hosts: [ "vbrandl.net" ] + target: /var/www/vbrandl.net + source: public/* + user: hugo + secrets: [ rsync_key ] +branches: master