dns/.drone.yml
2020-09-20 15:27:24 +01:00

30 lines
457 B
YAML

---
kind: pipeline
type: docker
name: dnscontrol
trigger:
event: push
workspace:
path: /dns
steps:
- name: preview
image: stackexchange/dnscontrol
environment:
PDNS_API_KEY:
from_secret: PDNS_API_KEY
commands:
- dnscontrol preview
- name: push
image: stackexchange/dnscontrol
environment:
PDNS_API_KEY:
from_secret: PDNS_API_KEY
commands:
- dnscontrol push
when:
branch: master