Skip to content
Kapten
Esc
↑↓navigate↵open⌘Jpreview
On this page

Build a pipeline

Deploy several components of an environment in a set order, for example a migration job, then the API and worker, then the frontend.

This guide builds a three-step pipeline for a typical release: migrate the database, deploy the backend, then the frontend.

Create the pipeline

In your project, open Pipelines, then New pipeline. Name it, for example release.

Add the steps

Add three steps, which run in this order:

Step Services If a service fails
migrate the migrate job Stop the pipeline
backend api, worker Stop the pipeline
frontend web Stop the pipeline

Services in the same step deploy together. Drag a step to change when it runs.

Run it

Click Run pipeline. Each run appears below the steps: open one to see how each service went and read its logs.

If the migration fails, the backend and frontend steps are skipped and the running version stays in place. Choose Continue with the next step for a step whose failure should not block the rest.

Was this page helpful?