50 lines
1.6 KiB
YAML
50 lines
1.6 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. Good job. {{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.
|
|
{{/success}}
|
|
# 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}}
|