forked from data.coop/website
Refactor .drone.yml and add notification
This commit is contained in:
parent
6e7301af1d
commit
e186a57f5f
20
.drone.yml
20
.drone.yml
|
@ -1,16 +1,18 @@
|
||||||
pipeline:
|
kind: pipeline
|
||||||
build:
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
image: ruby
|
image: ruby
|
||||||
commands:
|
commands:
|
||||||
- gem install bundler
|
- gem install bundler
|
||||||
- bundle install
|
- bundle install
|
||||||
- bundle exec jekyll build
|
- bundle exec jekyll build
|
||||||
|
|
||||||
docker:
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
repo: docker.data.coop/data-coop-website
|
repo: docker.data.coop/data-coop-website
|
||||||
registry: docker.data.coop
|
registry: docker.data.coop
|
||||||
secrets: [DOCKER_USERNAME, DOCKER_PASSWORD]
|
|
||||||
username:
|
username:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
password:
|
password:
|
||||||
|
@ -21,3 +23,13 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
- name: notify
|
||||||
|
image: plugins/matrix
|
||||||
|
settings:
|
||||||
|
homeserver: https://data.coop
|
||||||
|
roomid: plKSghHbepWeUEtbHE:data.coop
|
||||||
|
username:
|
||||||
|
from_secret: matrix_username
|
||||||
|
password:
|
||||||
|
from_secret: matrix_password
|
||||||
|
|
Loading…
Reference in a new issue