Before you begin using Dispatch, you should set up your local environment with the following tools:
- git commands. Many CI/CD and GitOps use cases require Git. If you do not already have it installed, see the directions here.
Get started using Dispatch in five steps:
Install the Dispatch CLI.
Note that unless otherwise specified, the Dispatch CLI commands create repositories, secrets, pipelines and tasks in the
defaultnamespace. For production installations, we suggest you create a new namespace dedicated to your CI workloads, for example,
dispatch-ci. You will then specify that namespace when using the CLI.
dispatch -n dispatch-ci login docker --serviceaccount=team1
dispatch -n dispatch-work create repository
Install Dispatch on Kubernetes. Dispatch is built to run on Kubernetes and leverage its native features and services. To install Dispatch onto an existing Kubernetes cluster, see install Dispatch.
Set Up Continuous Integration (CI). To build and test your Continuous Integration (CI), you can leverage one of multiple declarative languages to rapidly create and execute the pipeline. To set up CI for your project, follow the repository configuration instructions.
Build Your Pipeline. Configuring your CI pipeline using CUE, Starlark, JSON or YAML greatly simplifies pipeline configuration and increases its abilities. The simplest way to do this is to prepare a
Dispatchfile. For a reference on creating a
Dispatchfile, see the pipeline configuration reference.
Configure Continuous Deployment (CD). Dispatch lets you automaticallly detect changes to how the application should be deployed or automatically resolve deployment issues. To configure continuous deployment for your project, follow the deployment instructions.