Skip to main content
Deno 2 is finally here 🎉️
Learn more

Cloudflare Pipeline

fluentci pipeline deno module deno compatibility

A ready-to-use CI/CD Pipeline for deploying your Cloudflare Workers to Cloudflare.

🚀 Usage

Run the following command:

fluentci run cloudflare_pipeline

Environment Variables

Variable Description
CF_API_TOKEN Your Cloudflare API Token.
CF_ACCOUNT_ID Your Cloudflare Account ID.
DIRECTORY The directory to deploy to Cloudflare Pages. Defaults to .
PROJECT_NAME The name of your project.

Jobs

Job Description
deploy Deploys your Worker to Cloudflare.
pagesDeploy Deploy a directory of static assets as a Pages deployment.
deploy(
  accountId: String!, 
  apiToken: String!, 
  src: String!
): String

pagesDeploy(
  accountId: String!, 
  apiToken: String!, 
  directory: String!, 
  projectName: String!, 
  src: String!
): String

Programmatic usage

You can also use this pipeline programmatically:

import { deploy } from "https://pkg.fluentci.io/cloudflare_pipeline@v0.6.5/mod.ts";

await deploy(".");