From 5585285223c68ae6e5422177d1eb490823fa8917 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 24 Jan 2019 22:19:20 +0100 Subject: [PATCH] add notify task to drone config --- .drone.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.drone.yml b/.drone.yml index 289d224..796c893 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,3 +20,21 @@ steps: - git clone https://gitea.rknet.org/ansible/ansible-later-policy.git ~/policy - git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini depends_on: [ clone ] + + - name: notify + image: plugins/matrix + settings: + homeserver: https://matrix.rknet.org + roomid: MtidqQXWWAtQcByBhH:rknet.org + template: "Status: **{{ build.status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
Message: {{ build.message }}" + username: + from_secret: matrix_username + password: + from_secret: matrix_password + depends_on: + - ansible-latest + - ansible-master + when: + status: + - success + - failure