From cd85c83fd32681d69a76d750d558f98500a8f11d Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sat, 5 Jun 2021 07:31:07 +0200 Subject: [PATCH] Notify on failure --- .drone.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 087bd5f..1e6eaa0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,8 @@ steps: - apt update - apt install -y shellcheck - shellcheck plugin.sh - - name: docker push + + - name: publish image image: plugins/docker settings: username: @@ -17,6 +18,21 @@ steps: from_secret: docker_reg_passwd repo: decentral1se/drone-abra tags: latest + + - name: notify on failure + image: plugins/matrix + settings: + homeserver: https://matrix.autonomic.zone + roomid: "IFazIpLtxiScqbHqoa:autonomic.zone" + userid: "@autono-bot:autonomic.zone" + accesstoken: + from_secret: autono_bot_access_token + depends_on: + - run shellcheck + - publish image + when: + status: + - failure trigger: branch: - main