Drone plugins > Cloudflare DNS
cloudflare.svg

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

    stringrequired

    Cloudflare API token.

    Secret recommended

    Default: none

  • zone_identifier

    stringrequired

    Cloudflare zone id.

    Default: none

  • action

    stringoptional

    What type of action, options are set, unset.

    Default: none

  • record_type

    stringrequired

    Type of DNS record, examples include A, CNAME, NS, etc.

    Default: none

  • record_name

    stringrequired

    Name of DNS record.

    Default: none

  • record_content

    stringoptional

    Value of DNS record.

    Default: none

  • record_proxied

    booleanoptional

    Proxy record through cloudflare.

    Default: true

  • record_ttl

    numberoptional

    Time to live value in seconds for DNS record.

    Default: 1

  • record_priority

    numberoptional

    Priority value for DNS record.

    Default: 1

  • debug

    booleanoptional

    Display debug data.

    Default: false