This commit is contained in:
parent
ba469c6ab4
commit
b1eaeb928b
40
.drone.yml
40
.drone.yml
@ -1,45 +1,47 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build-dev:
|
||||||
image: cbrgm/drone-hugo:latest
|
image: cbrgm/drone-hugo:latest
|
||||||
buildDrafts: true
|
buildDrafts: true
|
||||||
buildFuture: true
|
buildFuture: true
|
||||||
buildExpired: true
|
buildExpired: true
|
||||||
validate: true
|
validate: true
|
||||||
url: https://staging.vbrandl.net
|
url: https://staging.vbrandl.net
|
||||||
compress:
|
when:
|
||||||
image: alpine:latest
|
branch: develop
|
||||||
commands:
|
|
||||||
- apk --no-cache update
|
|
||||||
- apk add make
|
|
||||||
- make -C public/ -f ../Makefile
|
|
||||||
deploy:
|
|
||||||
image: drillster/drone-rsync
|
|
||||||
hosts: [ "vbrandl.net" ]
|
|
||||||
target: /var/www/staging.vbrandl.net
|
|
||||||
source: public/*
|
|
||||||
user: hugo
|
|
||||||
secrets: [ rsync_key ]
|
|
||||||
branches: develop
|
|
||||||
|
|
||||||
pipeline:
|
build-prod:
|
||||||
build:
|
|
||||||
image: cbrgm/drone-hugo:latest
|
image: cbrgm/drone-hugo:latest
|
||||||
buildDrafts: false
|
buildDrafts: false
|
||||||
buildFuture: false
|
buildFuture: false
|
||||||
buildExpired: false
|
buildExpired: false
|
||||||
validate: true
|
validate: true
|
||||||
url: https://www.vbrandl.net
|
url: https://www.vbrandl.net
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
|
||||||
compress:
|
compress:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- apk --no-cache update
|
- apk --no-cache update
|
||||||
- apk add make
|
- apk add make
|
||||||
- make -C public/ -f ../Makefile
|
- make -C public/ -f ../Makefile
|
||||||
deploy:
|
|
||||||
|
deploy-dev:
|
||||||
|
image: drillster/drone-rsync
|
||||||
|
hosts: [ "vbrandl.net" ]
|
||||||
|
target: /var/www/staging.vbrandl.net
|
||||||
|
source: public/*
|
||||||
|
user: hugo
|
||||||
|
secrets: [ rsync_key ]
|
||||||
|
when:
|
||||||
|
branch: develop
|
||||||
|
|
||||||
|
deploy-prod:
|
||||||
image: drillster/drone-rsync
|
image: drillster/drone-rsync
|
||||||
hosts: [ "vbrandl.net" ]
|
hosts: [ "vbrandl.net" ]
|
||||||
target: /var/www/vbrandl.net
|
target: /var/www/vbrandl.net
|
||||||
source: public/*
|
source: public/*
|
||||||
user: hugo
|
user: hugo
|
||||||
secrets: [ rsync_key ]
|
secrets: [ rsync_key ]
|
||||||
branches: master
|
when:
|
||||||
|
branch: master
|
||||||
|
Loading…
Reference in New Issue
Block a user