From da430c2d0ffc511e1d237f8ecf0881e9478c7231 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Tue, 11 Jan 2022 07:34:04 +0200 Subject: [PATCH] PoC: Alternative envvar definition --- .drone.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9c85866..5957aeb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,14 +39,14 @@ steps: from_secret: ZONE_ID 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" - -H "Authorization: Bearer ${CLOUDFLARE_TOKEN}" + -H "Authorization: Bearer $CLOUDFLARE_TOKEN" -H "Content-Type: application/json" - --data '{"type":"A","name":"'"${DOMAIN}"'","content":"'"${machineip}"'","ttl":3600,"priority":10,"proxied":false}' + --data '{"type":"A","name":"'"$DOMAIN"'","content":"'"$machineip"'","ttl":3600,"priority":10,"proxied":false}' - > curl -s -X POST "https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/dns_records" -H "Authorization: Bearer ${CLOUDFLARE_TOKEN}"