45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
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 ]
|
|
# Tell people vikunja web was updated
|
|
telegram:
|
|
image: appleboy/drone-telegram
|
|
secrets: [ TELEGRAM_TOKEN, TELEGRAM_TO ]
|
|
format: markdown
|
|
message: >
|
|
{{#success build.status}}
|
|
Build {{build.number}} succeeded, deployed website.
|
|
{{else}}
|
|
build {{build.number}} failed. Fix me please.
|
|
{{/success}}]
|
|
{{commit.author}} did {{build.event}} to {{commit.branch}}({{commit.sha}}:
|
|
`{{commit.message}}`
|
|
Build started at {{build.started}}, finished at {{build.finished}}.
|