website/.drone.yml

43 lines
1.2 KiB
YAML
Raw Normal View History

2018-09-22 20:44:43 +00:00
workspace:
path: /src
clone:
git:
image: plugins/git
depth: 50
tags: true
pipeline:
docker:
image: plugins/docker
pull: true
secrets: [ docker_username, docker_password ]
repo: vikunja/website
tags: [ 'latest' ]
auto_tag: true
when:
event: [ push, tag ]
branch: [ master ]
rancher:
image: peloton/drone-rancher
url: http://server01.kolaente.de:8080/v1
secrets: [ RANCHER_ACCESS_KEY, RANCHER_SECRET_KEY ]
service: vikunja-website/web
docker_image: vikunja/website
confirm: true
when:
event: [ push, tag ]
2018-09-22 20:47:12 +00:00
# Tell people vikunja web was updated
telegram:
image: appleboy/drone-telegram
2018-09-22 21:15:29 +00:00
secrets: [ TELEGRAM_TOKEN, TELEGRAM_TO, ]
2018-09-22 21:18:48 +00:00
# message: >
# {{#success build.status}}
# Build {{build.number}} succeeded, deployed website.
# {{commit.author}} did {{build.event}} to {{commit.branch}}({{commit.sha}}:`{{commit.message}}`Build started at {{build.started}}, finished at {{build.finished}}.
# {{else}}
# Build {{build.number}} failed. Fix me please.
# {{commit.author}} did {{build.event}} to {{commit.branch}}({{commit.sha}}:`{{commit.message}}`Build started at {{build.started}}, finished at {{build.finished}}.
# {{/success}}