Sign inSign up

nhammond101/cloudflare-cache-clear

By nhammond101

•Updated about 7 years ago

This pipe will clear the Cloudflare cache for a given domain

Image
0

3.2K

nhammond101/cloudflare-cache-clear repository overview

⁠Bitbucket Pipelines Pipe: Cloudflare cache clear

This pipe will clear the Cloudflare⁠ cache for a given domain

⁠YAML Definition

Add the following snippet to the script section of your bitbucket-pipelines.yml file:

script:
  - pipe: nhammond101/cloudflare-cache-clear:0.2.0
    variables:
      API_EMAIL: "<string>"
      API_KEY: "<string>"
      DOMAIN: "<string>"
      # DEBUG: "<boolean>" # Optional

⁠Variables

VariableUsage
API_EMAIL (*)The cloudflare api email for accessing your account
API_KEY (*)The cloudflare api key for your account
DOMAIN (*)The domain name to purge the cache for
DEBUGTurn on extra debug information. Default: false.

(*) = required variable.

⁠Prerequisites

Create a Cloudflare⁠ account and add a web property

⁠Examples

Basic example:

script:
  - pipe: nhammond101/cloudflare-cache-clear:0.2.0
    variables:
      API_EMAIL: "[email protected]"
      API_KEY: "abcdef123456"
      DOMAIN: "abc.dev"

Advanced example:

script:
  - pipe: nhammond101/cloudflare-cache-clear:0.2.0
    variables:
      API_EMAIL: "[email protected]"
      API_KEY: "abcdef123456"
      DOMAIN: "abc.dev"
      DEBUG: "true"

⁠Support

If you’d like help with this pipe, or you have an issue or feature request, let us know on Community⁠.

If you’re reporting an issue, please include:

  • the version of the pipe
  • relevant logs and error messages
  • steps to reproduce

Tag summary

Content type

Image

Digest

Size

7.6 MB

Last updated

about 7 years ago

docker pull nhammond101/cloudflare-cache-clear