Drone plugins > Cloudflare Caching
cloudflare.svg

Cloudflare Caching

by JetRails


Our Drone plugin enables the ability for your pipeline to interface with Cloudflare's API to purge cache.

Example

kind: pipeline
name: default

steps:
- name: cloudflare
  image: jetrails/drone-cloudflare-caching
  settings:
    api_token:
      from_secret: cloudflare_token
    zone_identifier:
      from_secret: cloudflare_zone_identifier
    action: purge_everything

Properties

  • api_token

    stringrequired

    Cloudflare API token.

    Secret recommended

    Default: none

  • zone_identifier

    stringrequired

    Cloudflare zone id.

    Default: none

  • action

    stringrequired

    What type of cache purge, options are purge_everything, purge_hosts, purge_files, purge_tags.

    Default: purge_everything

  • list

    arrayoptional

    List of values, could be valid hosts, tags, or files depending on action parameter value.

    Default: none