Drone plugins > CloudFlare Pages
cloudflare.svg

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

    stringrequired

    CloudFlare Account ID

    Secret recommended

    Default: none

  • cloudflare_api_token

    stringrequired

    CloudFlare API Token for authentication

    Secret recommended

    Default: none

  • repo_url

    stringrequired

    GitHub repo URL for code to publish

    Default: none

  • branch

    stringrequired

    Cloudflare target branch

    Default: main

  • path

    stringrequired

    The directory of content to publish

    Default: .

  • project_name

    stringrequired

    The cloudflare project name

    Default: demo