2019-04-27 08:11:07 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: build
|
2018-09-22 20:44:43 +00:00
|
|
|
|
2019-04-27 08:11:07 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
2018-09-22 20:44:43 +00:00
|
|
|
|
2019-04-27 08:11:07 +00:00
|
|
|
steps:
|
2019-04-27 08:22:11 +00:00
|
|
|
- name: submodules
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init
|
|
|
|
- git submodule update --recursive --remote
|
|
|
|
|
2019-04-27 08:11:07 +00:00
|
|
|
- name: theme
|
2019-10-30 20:18:36 +00:00
|
|
|
image: kolaente/yarn
|
2018-10-15 09:08:57 +00:00
|
|
|
pull: true
|
2019-04-27 08:11:07 +00:00
|
|
|
group: build-static
|
2018-10-15 09:08:57 +00:00
|
|
|
commands:
|
|
|
|
- cd themes/vikunja
|
2019-04-27 08:13:04 +00:00
|
|
|
- yarn --production=false
|
2020-01-20 21:21:00 +00:00
|
|
|
- ./node_modules/.bin/gulp prod
|
2018-10-15 09:08:57 +00:00
|
|
|
|
2019-04-27 08:11:07 +00:00
|
|
|
- name: build
|
2018-10-15 08:54:21 +00:00
|
|
|
image: monachus/hugo
|
2018-10-15 08:43:31 +00:00
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- hugo
|
2019-04-27 08:11:07 +00:00
|
|
|
depends_on: [ theme ]
|
2018-10-15 08:56:00 +00:00
|
|
|
|
2019-04-27 08:11:07 +00:00
|
|
|
- name: docker
|
2018-10-15 08:56:00 +00:00
|
|
|
image: plugins/docker
|
|
|
|
pull: true
|
2019-04-27 08:11:07 +00:00
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/website
|
|
|
|
tags: [ 'latest' ]
|
2018-10-15 08:56:00 +00:00
|
|
|
when:
|
2019-04-27 08:11:07 +00:00
|
|
|
event: [ push ]
|
2018-10-15 09:02:25 +00:00
|
|
|
branch: [ master ]
|
2019-04-27 08:11:07 +00:00
|
|
|
depends_on: [ build ]
|
2018-10-15 09:02:25 +00:00
|
|
|
|
2019-04-27 08:11:07 +00:00
|
|
|
- name: telegram
|
2018-09-22 20:47:12 +00:00
|
|
|
image: appleboy/drone-telegram
|
2019-04-27 08:11:07 +00:00
|
|
|
depends_on:
|
2019-07-13 17:36:53 +00:00
|
|
|
- docker
|
2019-04-27 08:11:07 +00:00
|
|
|
settings:
|
|
|
|
token:
|
|
|
|
from_secret: TELEGRAM_TOKEN
|
|
|
|
to:
|
|
|
|
from_secret: TELEGRAM_TO
|
|
|
|
message: >
|
|
|
|
{{repo.owner}}/{{repo.name}}: \[{{build.status}}] Build {{build.number}}
|
|
|
|
{{commit.author}} pushed to {{commit.branch}} {{commit.sha}}: `{{commit.message}}`
|
|
|
|
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"}}.
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|