v0.4.0
A ready-to-use CI/CD Pipeline for deploying your Cloudflare Workers .
Attributes
Includes Deno configuration
Repository
Current version released
3 years ago
Cloudflare Pipeline
A ready-to-use CI/CD Pipeline for deploying your Cloudflare Workers to Cloudflare.
🚀 Usage
Run the following command:
dagger run fluentci cloudflare_pipelineEnvironment 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://esm.sh/@dagger.io/dagger@0.8.1";
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();