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:

dagger run fluentci 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.

Programmatic usage

You can also use this pipeline programmatically:

import Client, { connect } from "https://sdk.fluentci.io/v0.1.4/mod.ts";
import { Dagger } from "https://pkg.fluentci.io/cloudflare_pipeline/mod.ts";

const { deploy } = Dagger;

function pipeline(src = ".") {
  connect(async (client: Client) => {
    await deploy(client, src);
  });
}

pipeline();