website/.drone.yml

47 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:
2018-10-15 08:43:31 +00:00
build:
image: monachus/hugo
2018-10-15 08:43:31 +00:00
pull: true
commands:
- hugo
when:
event: [ push, tag, pull_request ]
2018-09-22 20:44:43 +00:00
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:50:11 +00:00
{{repo.owner}}/{{repo.name}}: \[{{build.status}}] Build {{build.number}}
{{commit.author}} pushed to {{commit.branch}} {{commit.sha}}: `{{commit.message}}`
2018-09-22 21:48:52 +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"}}.