add drone
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Marsh 2021-12-30 21:36:12 +00:00
parent 6d9ae78e7d
commit 809aa52d88
Signed by: burble
GPG Key ID: 0FCCD13AE1CF7ED8
2 changed files with 45 additions and 1 deletions

44
.drone.yml Normal file
View File

@ -0,0 +1,44 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang
environment:
CGO_ENABLED: 0
commands:
- go vet
- 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: dnsmasq_exporter
target: /dnsmasq_exporter/${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,6 +1,6 @@
# dnsmasq exporter # dnsmasq exporter
[![Build Status](https://travis-ci.org/google/dnsmasq_exporter.svg?branch=master)](https://travis-ci.org/google/dnsmasq_exporter) [![Build Status](https://ci.burble.dn42/api/badges/mirrors/dnsmasq_exporter/status.svg?ref=refs/heads/burble.dn42)](https://ci.burble.dn42/mirrors/dnsmasq_exporter)
dnsmasq_exporter is an exporter for [Prometheus](https://prometheus.io/), dnsmasq_exporter is an exporter for [Prometheus](https://prometheus.io/),
allowing you to monitor/alert on the number of DHCP leases and various DNS allowing you to monitor/alert on the number of DHCP leases and various DNS