CI/CD
You can set up continuous integration and continuous deployment (CI/CD) for your Workers by using either the native build system, Workers Builds, or using external providers to optimize your development workflow.
It is best practice to deploy your Workers with a CI/CD pipeline to automate the build and deployment process. A CI/CD pipeline offers several advantages:
- Streamlines the build and deployment process, eliminating the need for manual adhoc
wrangler deploy
commands - Ensures your Worker is always built and deployed in a uniform environment, reducing variability and potential errors
- Simplifies managing access to production credentials
Choose Workers Builds if you want a fully integrated solution within Cloudflare’s ecosystem that requires minimal setup and configuration for GitHub or GitLab users.
We recommend using external CI/CD providers if:
- You have a self-hosted instance of GitHub or GitLabs, which is currently not supported in Workers Builds’ git integration
- You are using a git provider that is not GitHub or GitLab
Workers Builds is Cloudflare’s native CI/CD system that allows you to integrate with GitHub or GitLab, and automatically deploy your changes with each new commit.
![Workers Builds Workflow Diagram](/_astro/workers-builds-workflow.Bmy3qIVc_OrWtK.webp)
Ready to streamline your Workers deployment? Get started with Workers Builds.
You can also choose to set up your CI/CD pipeline with an external provider.