From eb497994332d73a31529018752a83138f4524310 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Tue, 11 Jan 2022 07:23:42 +0200 Subject: [PATCH] PoC: Alternative envvar definition --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index ccd9c01..d74a0e5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,8 +30,8 @@ steps: - name: dns commands: - > - curl -s -X GET "https://api.cloudflare.com/client/v4/zones?name=$DOMAIN" - -H "Authorization: Bearer $CLOUDFLARE_TOKEN" + curl -s -X GET "https://api.cloudflare.com/client/v4/zones?name=${DOMAIN}" + -H "Authorization: Bearer ${CLOUDFLARE_TOKEN}" -H "Content-Type: application/json" - > curl -s -X POST "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records"