2018-07-20 11:55:41 +02:00
|
|
|
pipeline:
|
2018-07-20 12:11:13 +02:00
|
|
|
build:
|
2018-07-20 11:55:41 +02:00
|
|
|
image: cbrgm/drone-hugo:latest
|
|
|
|
buildDrafts: true
|
|
|
|
buildFuture: true
|
|
|
|
buildExpired: true
|
|
|
|
validate: true
|
|
|
|
url: https://staging.vbrandl.net
|
2018-07-20 12:57:55 +02:00
|
|
|
compress:
|
|
|
|
image: alpine:latest
|
2018-07-20 12:59:20 +02:00
|
|
|
commands:
|
2018-07-20 12:57:55 +02:00
|
|
|
- apk --no-cache update
|
|
|
|
- apk add make
|
2018-07-20 13:00:22 +02:00
|
|
|
- make -C public/ -f ../Makefile
|
2018-07-20 12:11:13 +02:00
|
|
|
deploy:
|
|
|
|
image: drillster/drone-rsync
|
|
|
|
hosts: [ "vbrandl.net" ]
|
|
|
|
target: /var/www/staging.vbrandl.net
|
2018-07-20 12:30:01 +02:00
|
|
|
source: public/*
|
2018-07-20 12:11:13 +02:00
|
|
|
user: hugo
|
|
|
|
secrets: [ rsync_key ]
|
2018-07-20 11:57:28 +02:00
|
|
|
branches: develop
|
2018-07-20 13:03:33 +02:00
|
|
|
|
|
|
|
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
|