dns/.drone.yml
2020-09-25 20:08:26 +01:00

27 lines
463 B
YAML

---
kind: pipeline
type: exec
name: dnscontrol
steps:
- name: preview
environment:
PDNS_API_KEY:
from_secret: PDNS_API_KEY
CLOUDFLARE_API_KEY:
from_secret: CLOUDFLARE_API_KEY
commands:
- dnscontrol preview
- name: push
environment:
PDNS_API_KEY:
from_secret: PDNS_API_KEY
CLOUDFLARE_API_KEY:
from_secret: CLOUDFLARE_API_KEY
commands:
- dnscontrol push
when:
branch: master