Add prod build

This commit is contained in:
Valentin Brandl 2018-07-20 13:03:33 +02:00
parent 613887a3c9
commit ba469c6ab4
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

View File

@ -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