Drone plugins > CloudFlare Pages
CloudFlare Pages
by mgzam-harness
The Cloudflare Pages plugin is used to publish static websites to CloudFlare Pages. The following configuration uses the wrangler cli to publish a website.
Example
kind: pipeline
name: default
steps:
- name: publish
image: mgzamharness/cf-pages-drone-plugin
settings:
cloudflare_account_id: account-id
cloudflare_api_token: api-token
repo_url: https://github.com/mahergzam/cloudflare-pages-demo
branch: main
path: /public
project_name: demo-project
Properties
cloudflare_account_id
stringrequiredCloudFlare Account ID
Secret recommendedDefault: none
cloudflare_api_token
stringrequiredCloudFlare API Token for authentication
Secret recommendedDefault: none
repo_url
stringrequiredGitHub repo URL for code to publish
Default: none
branch
stringrequiredCloudflare target branch
Default: main
path
stringrequiredThe directory of content to publish
Default: .
project_name
stringrequiredThe cloudflare project name
Default: demo