From bf78b2cac469086dfecb99767b30b1ad1d8f2a6c Mon Sep 17 00:00:00 2001 From: Simon Marsh Date: Tue, 21 Dec 2021 15:09:44 +0000 Subject: [PATCH] Update drone to use docker image --- .drone.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 95ab37a..62816dd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,11 +1,15 @@ --- kind: pipeline -type: exec +type: docker name: dnscontrol +workspace: + path: /dns + steps: - name: preview + image: stackexchange/dnscontrol environment: PDNS_API_KEY: from_secret: PDNS_API_KEY @@ -15,6 +19,7 @@ steps: - dnscontrol preview - name: push + image: stackexchange/dnscontrol environment: PDNS_API_KEY: from_secret: PDNS_API_KEY @@ -24,3 +29,18 @@ steps: - 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 + \ No newline at end of file