Refactor .drone.yml and add notification
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Jesper Hess 2019-03-16 20:19:01 +01:00
parent 6e7301af1d
commit e186a57f5f
Signed by untrusted user: graffen
GPG key ID: 351A89E40D763F0F

View file

@ -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