From 4234a033695fcba7e58dbea5bed5e23e52a82d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sat, 8 Jan 2022 17:57:05 +0100 Subject: [PATCH] make envvars pipeline global --- .drone.yml | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7e72bf5..41ea59d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,36 +1,27 @@ +--- kind: pipeline type: docker name: default +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 + 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