Prerequisites
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.
If you want to get started using GitHub, DockerHub, and the default Dispatch configuration you can follow any of the following quickstart guides:
- Hello-World example using Starlark.
- Hello-World example using CUE.
- Hello-World example using JSON.
- Hello-World example using YAML.
Alternatively, follow these five steps to set up your CI/CD pipeline using Dispatch on D2iQ Konvoy.
-
Install the Dispatch CLI.
Note that unless otherwise specified, the Dispatch CLI commands create repositories, secrets, pipelines and tasks in the
default
namespace. For production installations, we suggest you create a new namespace dedicated to your CI workloads, for example,dispatch-work
ordispatch-ci
. You will then specify that namespace when using the CLI.Examples:
dispatch -n dispatch-ci login docker --service-account=team1
or
dispatch -n dispatch-work ci repository create
-
Install Dispatch on Kubernetes. Dispatch is built to run on Kubernetes and leverage its native features and services. To install Dispatch onto an existing D2iQ Konvoy 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 aDispatchfile
, see the pipeline configuration reference. -
Configure Continuous Deployment (CD). Dispatch lets you automatically 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
Setting up Helloworld on GitHub in CUE
Using Cue, configure and set up a code repository for access by Dispatch, including configuring a Dispatchfile…Read More
Setting up Helloworld on GitHub in JSON
Using Json, configure and set up a code repository for access by Dispatch, including configuring a Dispatchfile…Read More
Setting up Helloworld on GitHub in Starlark
Using Starlark, configure and set up a code repository for access by Dispatch, including configuring a Dispatchfile…Read More
Setting up Helloworld on GitHub in YAML
Using YAML, configure and set up a code repository for access by Dispatch, including configuring a Dispatchfile…Read More