Notify on failure
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f77c975b4c
commit
cd85c83fd3
18
.drone.yml
18
.drone.yml
|
@ -8,7 +8,8 @@ steps:
|
||||||
- apt update
|
- apt update
|
||||||
- apt install -y shellcheck
|
- apt install -y shellcheck
|
||||||
- shellcheck plugin.sh
|
- shellcheck plugin.sh
|
||||||
- name: docker push
|
|
||||||
|
- name: publish image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
|
@ -17,6 +18,21 @@ steps:
|
||||||
from_secret: docker_reg_passwd
|
from_secret: docker_reg_passwd
|
||||||
repo: decentral1se/drone-abra
|
repo: decentral1se/drone-abra
|
||||||
tags: latest
|
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:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
Reference in New Issue