diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..1b37302 --- /dev/null +++ b/.drone.yml @@ -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 + + + diff --git a/README.md b/README.md index 55f0a7f..201cae8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 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/), allowing you to monitor/alert on the number of DHCP leases and various DNS