feat(Drone): Ajout d'une notification lors d'une erreur du build
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Simon 2023-01-11 18:07:40 +01:00
parent a78b65d364
commit f0bba50938
1 changed files with 17 additions and 0 deletions

View File

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