website/.drone.yml

39 lines
1.1 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:32:22 +00:00
message: >
2018-09-22 21:41:07 +00:00
**{{repo.owner}}/{{repo.name}}**: \[{{build.status}}] Build {{build.number}}\n
2018-09-22 21:40:26 +00:00
{{commit.author}} pushed to {{commit.branch}} {{commit.sha}}: \`{{commit.message}}\`
2018-09-22 21:47:17 +00:00
Build started at {{datetime build.started "2006-Jan-02T15:04:05Z" "GMT+2"}}\, finished at {{datetime build.finished "2006-Jan-02T15:04:05Z" "GMT+2"}}.