2018-09-22 20:44:43 +00:00
|
|
|
workspace:
|
|
|
|
path: /src
|
|
|
|
|
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: plugins/git
|
|
|
|
depth: 50
|
|
|
|
tags: true
|
|
|
|
|
|
|
|
pipeline:
|
2018-10-15 09:08:57 +00:00
|
|
|
build_css:
|
|
|
|
image: webhippie/nodejs
|
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- cd themes/vikunja
|
|
|
|
- npm install gulp-cli -g
|
|
|
|
- npm install
|
|
|
|
- gulp
|
|
|
|
|
2018-10-15 08:43:31 +00:00
|
|
|
build:
|
2018-10-15 08:54:21 +00:00
|
|
|
image: monachus/hugo
|
2018-10-15 08:43:31 +00:00
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- hugo
|
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
2018-10-15 09:03:32 +00:00
|
|
|
docker:
|
2018-09-22 20:44:43 +00:00
|
|
|
image: plugins/docker
|
|
|
|
pull: true
|
|
|
|
secrets: [ docker_username, docker_password ]
|
|
|
|
repo: vikunja/website
|
2018-10-15 09:02:25 +00:00
|
|
|
tags: [ 'develop' ]
|
2018-09-22 20:44:43 +00:00
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
2018-10-15 09:02:25 +00:00
|
|
|
branch: [ develop ]
|
2018-10-15 08:56:00 +00:00
|
|
|
|
2018-10-15 09:03:32 +00:00
|
|
|
docker:
|
2018-10-15 08:56:00 +00:00
|
|
|
image: plugins/docker
|
|
|
|
pull: true
|
|
|
|
secrets: [ docker_username, docker_password ]
|
|
|
|
repo: vikunja/website
|
2018-10-15 09:02:25 +00:00
|
|
|
tags: [ 'latest' ]
|
2018-10-15 08:56:00 +00:00
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
2018-10-15 09:02:25 +00:00
|
|
|
branch: [ master ]
|
|
|
|
|
2018-09-22 20:44:43 +00:00
|
|
|
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-10-15 09:01:26 +00:00
|
|
|
branch: [ master ]
|
|
|
|
|
|
|
|
rancher:
|
|
|
|
image: peloton/drone-rancher
|
|
|
|
url: http://server01.kolaente.de:8080/v1
|
|
|
|
secrets: [ RANCHER_ACCESS_KEY, RANCHER_SECRET_KEY ]
|
2018-10-15 09:04:30 +00:00
|
|
|
service: vikunja-website/web-dev
|
2018-10-15 09:01:26 +00:00
|
|
|
docker_image: vikunja/website:develop
|
|
|
|
confirm: true
|
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
|
|
|
branch: [ develop ]
|
|
|
|
|
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"}}.
|