This pipe will clear the Cloudflare cache for a given domain
3.2K
This pipe will clear the Cloudflare cache for a given domain
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
| Variable | Usage |
|---|---|
| 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 |
| DEBUG | Turn on extra debug information. Default: false. |
(*) = required variable.
Create a Cloudflare account and add a web property
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"
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:
Content type
Image
Digest
Size
7.6 MB
Last updated
about 7 years ago
docker pull nhammond101/cloudflare-cache-clear