feat(Drone): Ajout d'une notification lors d'une erreur du build
This commit is contained in:
parent
a78b65d364
commit
f0bba50938
17
.drone.yml
17
.drone.yml
|
@ -34,6 +34,12 @@ kind: secret
|
|||
name: PRODUCTION_AWS_SECRET_ACCESS_KEY
|
||||
data: 1oL1XSfD86/BR+NA2XyhGDGUmd9+4d7Br1IFcP/63hekgtzyPsXPKZuy30ruFJisJsskl/1+gs2GJ+XNLcdFJzMpx7BwKBrLkCBS/pQy2xvXbUzJPd6HIiSyrhY=
|
||||
|
||||
---
|
||||
# drone encrypt weko/lestoitsduval $MATRIX_TOKEN
|
||||
kind: secret
|
||||
name: MATRIX_TOKEN
|
||||
data: ktyee5rgjCphBsXt5+mGZ2VdiaMT4NXbWzrdk0eZySnlxNe+N0JGGEnxFY+CIOds1rlgIlW/FyWEnMhSczhTCmYP7YMOWfc=
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
|
@ -86,6 +92,17 @@ steps:
|
|||
commands:
|
||||
- hugo deploy --environment production
|
||||
|
||||
- name: notify
|
||||
image: plugins/matrix
|
||||
settings:
|
||||
homeserver: https://converser.eu
|
||||
roomid: "!QwOITmkKxRJJyCSDOZ:converser.eu"
|
||||
userid: "@resilien:converser.eu"
|
||||
accesstoken:
|
||||
from_secret: MATRIX_TOKEN
|
||||
when:
|
||||
status: [ failure ]
|
||||
|
||||
volumes:
|
||||
- name: hugo-theme-lowtech_node_modules
|
||||
host:
|
||||
|
|
Loading…
Reference in New Issue