You can set up continuous integration and continuous deployment (CI/CD) for your Workers by using either the integrated build system, Workers Builds, or using external providers to optimize your development workflow.
Using a CI/CD pipeline to deploy your Workers is a best practice because it:
- Automates the build and deployment process, removing the need for manual
wrangler deploycommands. - Ensures consistent builds and deployments across your team by using the same source control management (SCM) system.
- Reduces variability and errors by deploying in a uniform environment.
- Simplifies managing access to production credentials.
Choose Workers Builds if you want a fully integrated solution within Cloudflare's ecosystem for Artifacts, GitHub, or GitLab repositories.
We recommend using external CI/CD providers if:
- You have a self-hosted instance of GitHub or GitLab, which is currently not supported in Workers Builds' Git integration
- You are using a Git provider other than Artifacts, GitHub, or GitLab
Workers Builds is Cloudflare's native CI/CD system that allows you to integrate with Artifacts, GitHub, or GitLab to automatically deploy changes with each new push to a selected branch (e.g. main).
Ready to streamline your Workers deployments? Get started with Workers Builds.
You can also choose to set up your CI/CD pipeline with an external provider.