YAML examples for Cloudflare
Cloudflare cache invalidation
yaml
- action: Cloudflare action
type: CLOUDFLARE
trigger_time: ON_EVERY_EXECUTION
disabled: false
integration: "my-cloudflare-integration"
input_type: SCM_REPOSITORY
local_path: /
base_url: https://buddy.works
purge_all: false
deployment_excludes:
- /tmp
- '*.log'
deployment_includes:
- /tmp/assets
- /tmp/styles
zone: buddy.works
ignore_errors: false
Purge all Cloudflare cache
yaml
- action: Cloudflare purge all
type: CLOUDFLARE
trigger_time: ON_EVERY_EXECUTION
disabled: false
integration: "my-cloudflare-integration"
purge_all: true
zone: my-zone
ignore_errors: false
Purge cache by fixed paths
yaml
- action: "Purge cache at aron.recipes"
type: "CLOUDFLARE"
purge_all: false
paths:
- "ccs/styles.css"
- "cat_picture.jpg"
integration: "cloudflare"
zone: "buddy.recipes"
base_url: "https://aron.recipes"
Purge cache by URL prefixes
yaml
- action: "Purge static assets"
type: "CLOUDFLARE"
integration: "cloudflare"
zone: "buddy.recipes"
prefixes:
- "/static/"
- "/images/"
Purge cache by cache tags
yaml
- action: "Purge tagged content"
type: "CLOUDFLARE"
integration: "cloudflare"
zone: "buddy.recipes"
tags:
- "homepage"
- "product-list"
Purge cache by hostnames
yaml
- action: "Purge hosts"
type: "CLOUDFLARE"
integration: "cloudflare"
zone: "buddy.recipes"
hosts:
- "www.buddy.recipes"
- "images.buddy.recipes"