Compare commits

...

2 Commits

Author SHA1 Message Date
f795204559
Add badge
All checks were successful
continuous-integration/drone/push Build is passing
2021-12-22 15:34:54 +00:00
a39b1aa206
drone pipeline 2021-12-22 15:33:11 +00:00
2 changed files with 42 additions and 0 deletions

40
.drone.yml Normal file
View File

@ -0,0 +1,40 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang
environment:
CGO_ENABLED: 0
commands:
- go build
- name: upload
image: plugins/s3
settings:
bucket: artifacts
access_key:
from_secret: MINIO_ACCESS_KEY
secret_key:
from_secret: MINIO_SECRET_KEY
endpoint: https://minio.burble.dn42
region: uk-lon3
path_style: true
source: alertmanager-irc-relay
target: /alertmanager-irc-relay/${DRONE_BRANCH}
---
kind: secret
name: MINIO_ACCESS_KEY
get:
path: burble.dn42/kv/data/drone/minio
name: ACCESS_KEY
---
kind: secret
name: MINIO_SECRET_KEY
get:
path: burble.dn42/kv/data/drone/minio
name: SECRET_KEY

View File

@ -1,5 +1,7 @@
# Alertmanager IRC Relay
[![Build Status](https://ci.burble.dn42/api/badges/mirrors/alertmanager-irc-relay/status.svg?ref=refs/heads/burble.dn42)](https://ci.burble.dn42/mirrors/alertmanager-irc-relay)
Alertmanager IRC Relay is a bot relaying [Prometheus](https://prometheus.io/) alerts to IRC.
Alerts are received from Prometheus using
[Webhooks](https://prometheus.io/docs/alerting/configuration/#webhook-receiver-<webhook_config>)