lestoitsduval-alerting/.drone.yml

39 lines
992 B
YAML
Raw Normal View History

2024-09-09 18:07:45 +02:00
---
# drone encrypt Weko/lestoitsduval-alerting $MJ_APIKEY_PUBLIC
kind: secret
name: MJ_APIKEY_PUBLIC
data: 08pr801Ep2WSQyE8xA/xSOCQedcq050eMt/XCXEgp7pCo21DVWGcrgmk8+77p15EJ0r1ToWWcizAO8A7
---
# drone encrypt Weko/lestoitsduval-alerting $MJ_APIKEY_PRIVATE
kind: secret
name: MJ_APIKEY_PRIVATE
data: FgCqJJHfmQ8L504tfjxyRcHY1K5IV5WqV346ajhIEt/Ahwds3WAUcvTI5UB+0vR5m8YekrIF1qe8cmkv
---
kind: pipeline
type: docker
name: prod
steps:
- name: Test en prod
image: node:current-alpine
environment:
MJ_APIKEY_PUBLIC:
from_secret: MJ_APIKEY_PUBLIC
MJ_APIKEY_PRIVATE:
from_secret: MJ_APIKEY_PRIVATE
commands:
- TZ=Europe/Paris node index.js
- name: notify
image: plugins/matrix@sha256:f1affb31b0c86963c97c6f976fa0dcb3cc84272057fd8558d609d28b3064bd7f
settings:
homeserver: https://converser.eu
roomid: "QwOITmkKxRJJyCSDOZ:converser.eu"
userid: "resilien:converser.eu"
accesstoken:
from_secret: MATRIX_ACCESSTOKEN
when:
status: [ failure ]