Integrating Waypoint with CircleCI
We can leverage CircleCI's orb concept to simplify configuring the deployment of applications. This example configures CircleCI to configure a standalone Waypoint setup temporarily, with the server and runner executing within the CircleCI job itself.
The example demonstrates the main steps:
- Set-up the dependencies Waypoint might use. This could be a Kubernetes context for a more advanced application, or in the below example, a Docker daemon to run applications on.
- Install and Initalize Waypoint with
waypoint/init
. This command will install the waypoint CLI, start up a remote docker instance and runwaypoint init
. - Run the build, deploy, and release. We can leverage the orb's
up
command to do so
Workspaces
This example assumes the use of a single default workspace. If this was in a job triggered by a GitHub commit or pull request and may be an ephemeral development environment, you may want to interpolate the relevant Git ref for the workspace parameter, as demonstrated below:
See the CircleCI built-in environment variables page for a full list of variables that could be utilized in this way.
Example