vbrandl.net/.drone.yml

88 lines
1.9 KiB
YAML
Raw Normal View History

2018-07-20 11:55:41 +02:00
pipeline:
2018-08-15 15:15:59 +02:00
# restore-cache-dev:
# image: drillster/drone-volume-cache
# restore: true
# mount:
# - public
# volumes:
# - /home/gitea/gitea/drone_build_cache/staging.vbrandl.net:/cache
# when:
# branch: develop
2018-07-20 18:20:57 +02:00
2018-08-15 15:15:59 +02:00
# restore-cache-prod:
# image: drillster/drone-volume-cache
# restore: true
# mount:
# - public
# volumes:
# - /home/gitea/gitea/drone_build_cache/vbrandl.net:/cache
# when:
# branch: master
2018-07-20 18:20:57 +02:00
2018-07-20 13:06:10 +02:00
build-dev:
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 13:06:10 +02:00
when:
branch: develop
2018-07-20 13:03:33 +02:00
2018-07-20 13:06:10 +02:00
build-prod:
2018-07-20 13:03:33 +02:00
image: cbrgm/drone-hugo:latest
buildDrafts: false
buildFuture: false
buildExpired: false
validate: true
url: https://www.vbrandl.net
2018-07-20 13:06:10 +02:00
when:
branch: master
2018-07-20 13:03:33 +02:00
compress:
image: alpine:latest
commands:
- apk --no-cache update
- apk add make
- make -C public/ -f ../Makefile
2018-07-20 13:06:10 +02:00
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:
2018-07-20 13:03:33 +02:00
image: drillster/drone-rsync
hosts: [ "vbrandl.net" ]
target: /var/www/vbrandl.net
source: public/*
user: hugo
secrets: [ rsync_key ]
2018-07-20 13:06:10 +02:00
when:
branch: master
2018-07-20 18:20:57 +02:00
2018-08-15 15:15:59 +02:00
# rebuild-cache-dev:
# image: drillster/drone-volume-cache
# rebuild: true
# mount:
# - public
# volumes:
# - /home/gitea/gitea/drone_build_cache/staging.vbrandl.net:/cache
# when:
# branch: develop
2018-07-20 18:20:57 +02:00
2018-08-15 15:15:59 +02:00
# rebuild-cache-prod:
# image: drillster/drone-volume-cache
# rebuild: true
# mount:
# - public
# volumes:
# - /home/gitea/gitea/drone_build_cache/vbrandl.net:/cache
# when:
# branch: master