Cloudflare with YAML

YAML parameters for Cloudflare

Name Type Description
action Required String The name of the action.
type Required String The type of the action. Should be set to CLOUDFLARE.
zone_id Required String The ID of the Cloudflare zone.
distribution_name Required String The name of the Cloudflare web distribution.
integration Required String The ID of the integration.
input_type String Defines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS.
local_path String The path in the repository.
base_url String The URL address to the desired site.
purge_all Boolean Specifies whether or not the whole cache should be removed.
paths String[] The list of paths to invalidate.
tags String[] The list of cache tags to purge.
hosts String[] The list of hostnames to purge.
prefixes String[] The list of URL prefixes to purge.
purge_by_change_set_limit Integer The maximum number of files in the changeset to trigger purge.
deployment_excludes String[] The paths and/or files that will be left out during the deployment.
deployment_includes String[] The exceptions from the ignore patterns set in deployment_excludes.

YAML Example for Cloudflare

yaml
actions: - action: "Cloudflare action" type: "CLOUDFLARE" input_type: "SCM_REPOSITORY" local_path: "/" zone_id: "f00e1e106ca13e658477bf7393ad83f1" distribution_name: "buddy.works" purge_all: false base_url: "https://buddy.works", integration: "my_integration" deployment_excludes: - "/tmp" - "*.log" deployment_includes: - "/tmp/assets" - "/tmp/styles"

Last modified on Feb 11, 2026