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

Cloudflare 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

Jobs

Job Description
deploy Deploys your Worker to Cloudflare.

Programmatic usage

You can also use this pipeline programmatically:

import { Client, connect } from "@dagger.io/dagger";
import { Dagger } from "https://deno.land/x/cloudflare_pipeline/mod.ts";

const { deploy } = Dagger;

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

pipeline();