跳到主要内容

Cloudflare with YAML

List of YAML parameters and examples for the \"Cloudflare\" action.

YAML parameters for Cloudflare

名称类型描述
action
必填
String操作名称
type
必填
StringThe type of the action. Should be set to CLOUDFLARE.
zone_id
必填
StringThe ID of the Cloudflare zone.
distribution_name
必填
StringThe name of the Cloudflare web distribution.
integration_hash
必填
StringThe ID of the integration.
input_typeStringDefines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS.
local_pathStringThe path in the repository.
base_urlStringThe URL address to the desired site.
purge_allBooleanSpecifies whether or not the whole cache should be removed.
deployment_excludesString[]The paths and/or files that will be left out during the deployment.
deployment_includesString[]The exceptions from the ignore patterns set in deployment_excludes.

YAML Example for Cloudflare

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_hash: "5ddb7c180fb38be67bd78a88a"
deployment_excludes:
- "/tmp"
- "*.log"
deployment_includes:
- "/tmp/assets"
- "/tmp/styles"