more ddns verbosity
This commit is contained in:
		| @@ -20,12 +20,18 @@ spec: | |||||||
|                 && |                 && | ||||||
|                 echo "Current IP: $CURRENT_IP" |                 echo "Current IP: $CURRENT_IP" | ||||||
|                 && |                 && | ||||||
|  |                 curl https://ntfy.kluster.moll.re/kluster_ip | ||||||
|  |                 -H "Title: Kluster IP" | ||||||
|  |                 -d "Currently: $(CURRENT_IP)" | ||||||
|  |                 && | ||||||
|                 curl |                 curl | ||||||
|                 --request PUT |                 --request PUT | ||||||
|                 --url https://api.cloudflare.com/client/v4/zones/$(CLOUDFLARE_ZONE_ID)/dns_records/$(CLOUDFLARE_DNS_RECORD_ID) |                 --url https://api.cloudflare.com/client/v4/zones/$(CLOUDFLARE_ZONE_ID)/dns_records/$(CLOUDFLARE_DNS_RECORD_ID) | ||||||
|                 --header "Authorization: Bearer $(CLOUDFLARE_API_KEY)" |                 --header "Authorization: Bearer $(CLOUDFLARE_API_KEY)" | ||||||
|                 --header "Content-Type: application/json" |                 --header "Content-Type: application/json" | ||||||
|                 --data '{"content": "$(CURRENT_IP)", "name": "$(KLUSTER_DOMAIN)", "proxied": false, "type": "A"}' |                 --data '{"content": "$(CURRENT_IP)", "name": "$(KLUSTER_DOMAIN)", "proxied": false, "type": "A"}' | ||||||
|  |                 && | ||||||
|  |                 echo "Updated $(KLUSTER_DOMAIN) to $(CURRENT_IP) successfully" | ||||||
|  |  | ||||||
|             env: |             env: | ||||||
|               - name: CLOUDFLARE_ZONE_ID |               - name: CLOUDFLARE_ZONE_ID | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user