diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7e72bf5 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,36 @@ +kind: pipeline +type: docker +name: default + +steps: +- name: Validate configuration and check changes + image: stackexchange/dnscontrol + environment: + HE_USERNAME: + from_secret: HE_USERNAME + HE_PASSWORD: + from_secret: HE_PASSWORD + HE_TOTPKEY: + from_secret: HE_TOTPKEY + CF_APITOKEN: + from_secret: CF_APITOKEN + CF_ACCOUNTID: + from_secret: CF_ACCOUNTID + commands: + - dnscontrol preview + +- name: Push new configuration to providers + image: stackexchange/dnscontrol + environment: + HE_USERNAME: + from_secret: HE_USERNAME + HE_PASSWORD: + from_secret: HE_PASSWORD + HE_TOTPKEY: + from_secret: HE_TOTPKEY + CF_APITOKEN: + from_secret: CF_APITOKEN + CF_ACCOUNTID: + from_secret: CF_ACCOUNTID + commands: + - dnscontrol push \ No newline at end of file