Drone plugins > Cloudflare DNS
Cloudflare DNS
by JetRails
Our Drone plugin enables the ability for your pipeline to interface with Cloudflare's API to create/update/delete DNS records.
Example
kind: pipeline
name: default
steps:
- name: cloudflare
image: jetrails/drone-cloudflare-dns
settings:
api_token:
from_secret: cloudflare_token
zone_identifier:
from_secret: cloudflare_zone_identifier
debug: false
action: set
record_type: A
record_name: test.example.com
record_content: 127.0.0.1
record_proxied: false
Properties
api_token
stringrequiredCloudflare API token.
Secret recommendedDefault: none
zone_identifier
stringrequiredCloudflare zone id.
Default: none
action
stringoptionalWhat type of action, options are set, unset.
Default: none
record_type
stringrequiredType of DNS record, examples include A, CNAME, NS, etc.
Default: none
record_name
stringrequiredName of DNS record.
Default: none
record_content
stringoptionalValue of DNS record.
Default: none
record_proxied
booleanoptionalProxy record through cloudflare.
Default: true
record_ttl
numberoptionalTime to live value in seconds for DNS record.
Default: 1
record_priority
numberoptionalPriority value for DNS record.
Default: 1
debug
booleanoptionalDisplay debug data.
Default: false