Updated drone config to work with drone 1
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
79685b6e6e
commit
613691a512
111
.drone.yml
111
.drone.yml
|
@ -1,77 +1,74 @@
|
||||||
workspace:
|
kind: pipeline
|
||||||
path: /src
|
name: build
|
||||||
|
|
||||||
clone:
|
trigger:
|
||||||
git:
|
event:
|
||||||
image: plugins/git
|
- push
|
||||||
depth: 50
|
|
||||||
tags: true
|
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
build_css:
|
- name: theme
|
||||||
image: webhippie/nodejs
|
image: node:11-alpine
|
||||||
pull: true
|
pull: true
|
||||||
|
group: build-static
|
||||||
commands:
|
commands:
|
||||||
|
- apk add yarn
|
||||||
- cd themes/vikunja
|
- cd themes/vikunja
|
||||||
- npm install gulp-cli -g
|
- yarn global add gulp-cli -g
|
||||||
- npm install
|
- yarn
|
||||||
- gulp
|
- gulp
|
||||||
|
|
||||||
build:
|
- name: build
|
||||||
image: monachus/hugo
|
image: monachus/hugo
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- hugo
|
- hugo
|
||||||
when:
|
depends_on: [ theme ]
|
||||||
event: [ push, tag, pull_request ]
|
|
||||||
|
|
||||||
docker:
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
pull: true
|
pull: true
|
||||||
secrets: [ docker_username, docker_password ]
|
settings:
|
||||||
repo: vikunja/website
|
username:
|
||||||
tags: [ 'develop' ]
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
repo: vikunja/website
|
||||||
|
tags: [ 'latest' ]
|
||||||
when:
|
when:
|
||||||
event: [ push, tag ]
|
event: [ push ]
|
||||||
branch: [ develop ]
|
branch: [ master ]
|
||||||
|
depends_on: [ build ]
|
||||||
|
|
||||||
docker:
|
- name: rancher
|
||||||
image: plugins/docker
|
image: peloton/drone-rancher
|
||||||
pull: true
|
settings:
|
||||||
secrets: [ docker_username, docker_password ]
|
url: http://server01.kolaente.de:8080/v1
|
||||||
repo: vikunja/website
|
access_key:
|
||||||
tags: [ 'latest' ]
|
from_secret: RANCHER_ACCESS_KEY
|
||||||
|
secret_key:
|
||||||
|
from_secret: RANCHER_SECRET_KEY
|
||||||
|
service: vikunja-website/web
|
||||||
|
docker_image: vikunja/website
|
||||||
|
confirm: true
|
||||||
|
depends_on: [ docker ]
|
||||||
when:
|
when:
|
||||||
event: [ push, tag ]
|
event: [ push ]
|
||||||
branch: [ master ]
|
branch: [ master ]
|
||||||
|
|
||||||
rancher:
|
- name: telegram
|
||||||
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 ]
|
|
||||||
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-dev
|
|
||||||
docker_image: vikunja/website:develop
|
|
||||||
confirm: true
|
|
||||||
when:
|
|
||||||
event: [ push, tag ]
|
|
||||||
branch: [ develop ]
|
|
||||||
|
|
||||||
# Tell people vikunja web was updated
|
|
||||||
telegram:
|
|
||||||
image: appleboy/drone-telegram
|
image: appleboy/drone-telegram
|
||||||
secrets: [ TELEGRAM_TOKEN, TELEGRAM_TO, ]
|
depends_on:
|
||||||
message: >
|
- rancher
|
||||||
{{repo.owner}}/{{repo.name}}: \[{{build.status}}] Build {{build.number}}
|
settings:
|
||||||
{{commit.author}} pushed to {{commit.branch}} {{commit.sha}}: `{{commit.message}}`
|
token:
|
||||||
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"}}.
|
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
|
Loading…
Reference in New Issue
Block a user