Skip to content

Commit 513de2b

Browse files
committed
fix: add DNS response logging and remove output suppression
1 parent 6310359 commit 513de2b

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/workflows/deploy-aks.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -302,22 +302,11 @@ jobs:
302302
303303
if [ "$RECORD_ID" != "null" ] && [ -n "$RECORD_ID" ]; then
304304
# Update existing
305-
curl -s -X PUT "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records/$RECORD_ID" \
305+
local RESPONSE=$(curl -s -X PUT "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records/$RECORD_ID" \
306306
-H "Authorization: Bearer $CLOUDFLARE_DNS_TOKEN" \
307307
-H "Content-Type: application/json" \
308-
--data "{\"type\":\"CNAME\",\"name\":\"$NAME\",\"content\":\"$CONTENT\",\"proxied\":$PROXIED,\"ttl\":1}" > /dev/null
309-
else
310-
# Create new
311-
curl -s -X POST "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records" \
312-
-H "Authorization: Bearer $CLOUDFLARE_DNS_TOKEN" \
313-
-H "Content-Type: application/json" \
314-
--data "{\"type\":\"CNAME\",\"name\":\"$NAME\",\"content\":\"$CONTENT\",\"proxied\":$PROXIED,\"ttl\":1}" > /dev/null
315-
fi
316-
}
317-
318-
# Update Records
319-
update_dns_record "app" "$TUNNEL_CNAME" true
320-
update_dns_record "api" "$TUNNEL_CNAME" true
308+
--data "{\"type\":\"CNAME\",\"name\":\"$NAME\",\"content\":\"$CONTENT\",\"proxied\":$PROXIED,\"ttl\":1}")
309+
echo "Update response: $RESPONSE"
321310
update_dns_record "@" "$TUNNEL_CNAME" true
322311
323312
# --- Create Kubernetes Secrets ---

0 commit comments

Comments
 (0)