dns/.drone.yml
Simon Marsh bf78b2cac4
All checks were successful
continuous-integration/drone/push Build is passing
Update drone to use docker image
2021-12-21 15:09:44 +00:00

46 lines
776 B
YAML

---
kind: pipeline
type: docker
name: dnscontrol
workspace:
path: /dns
steps:
- name: preview
image: stackexchange/dnscontrol
environment:
PDNS_API_KEY:
from_secret: PDNS_API_KEY
CLOUDFLARE_API_KEY:
from_secret: CLOUDFLARE_API_KEY
commands:
- dnscontrol preview
- name: push
image: stackexchange/dnscontrol
environment:
PDNS_API_KEY:
from_secret: PDNS_API_KEY
CLOUDFLARE_API_KEY:
from_secret: CLOUDFLARE_API_KEY
commands:
- dnscontrol push
when:
branch: master
---
kind: secret
name: PDNS_API_KEY
get:
path: burble.dn42/kv/data/drone/dns
name: PDNS_API_KEY
---
kind: secret
name: CLOUDFLARE_API_KEY
get:
path: burble.dn42/kv/data/drone/dns
name: CLOUDFLARE_API_KEY