feat(Drone): Ajout d'une notification lors d'une erreur du build

This commit is contained in:
Simon 2023-01-11 18:05:18 +01:00
parent 8abc53adbe
commit 32b52670da
1 changed files with 17 additions and 0 deletions

View File

@ -34,6 +34,12 @@ kind: secret
name: PRODUCTION_AWS_SECRET_ACCESS_KEY name: PRODUCTION_AWS_SECRET_ACCESS_KEY
data: fCZeV+TBazRF7UAoRpyeKGQ0xvhzzbFp5vO7NXFsWu8IgHV/uD7fA0tQQYAqjKxu1OwTDitK/4rJQl20SGNqHw9X+pHWY4h2wDbOuhQD0L2VNIsuLpZcnipBbYA= data: fCZeV+TBazRF7UAoRpyeKGQ0xvhzzbFp5vO7NXFsWu8IgHV/uD7fA0tQQYAqjKxu1OwTDitK/4rJQl20SGNqHw9X+pHWY4h2wDbOuhQD0L2VNIsuLpZcnipBbYA=
---
# drone encrypt weko/cremeaux $MATRIX_TOKEN
kind: secret
name: MATRIX_TOKEN
data: HCEHjxtuUh/Qr+GwNAbCMobNcbq8QAJy1yk/baPesuHgQoCPLFbLU9rdmG/U/KXPSAWsufketMDo2lhwa7gXouObUyDDt8c=
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@ -89,6 +95,17 @@ steps:
commands: commands:
- hugo deploy --environment production - 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: volumes:
- name: hugo-theme-lowtech_node_modules - name: hugo-theme-lowtech_node_modules
host: host: