vbrandl.net/.drone.yml

110 lines
2.4 KiB
YAML
Raw Normal View History

2019-05-01 22:38:30 +02:00
kind: pipeline
name: build
2018-07-20 18:20:57 +02:00
2019-05-01 22:38:30 +02:00
steps:
2019-05-01 23:15:21 +02:00
- name: submodules
image: docker:git
commands:
- git submodule update --recursive --remote
2019-05-01 22:38:30 +02:00
- name: docker
image: plugins/docker
settings:
repo: vbrandl/vbrandl.net
username:
from_secret: docker_username
password:
from_secret: docker_password
ref:
- refs/heads/master
2018-07-20 18:20:57 +02:00
2019-05-01 22:38:30 +02:00
# pipeline:
# 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 13:03:33 +02:00
2019-05-01 22:38:30 +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 13:06:10 +02:00
2019-05-01 22:38:30 +02:00
# build-dev:
# image: plugins/hugo:latest
# buildDrafts: true
# buildFuture: true
# buildExpired: true
# hugoVersion: "0.49"
# validate: true
# url: https://staging.vbrandl.net
# when:
# branch: develop
2018-07-20 13:06:10 +02:00
2019-05-01 22:38:30 +02:00
# build-prod:
# image: plugins/hugo:latest
# buildDrafts: false
# buildFuture: false
# buildExpired: false
# hugoVersion: "0.49"
# validate: true
# url: https://www.vbrandl.net
# when:
# branch: master
2018-07-20 13:06:10 +02:00
2019-05-01 22:38:30 +02:00
# compress:
# image: alpine:latest
# commands:
# - apk --no-cache update
# - apk add make
# - make -C public/ -f ../Makefile
2018-07-20 18:20:57 +02:00
2019-05-01 22:38:30 +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
2018-07-20 18:20:57 +02:00
2019-05-01 22:38:30 +02:00
# deploy-prod:
# image: drillster/drone-rsync
# hosts: [ "vbrandl.net" ]
# target: /var/www/vbrandl.net
# source: public/*
# user: hugo
# secrets: [ rsync_key ]
# when:
# branch: master
# 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
# 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