---
title: Build a pipeline
description: 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](/concepts/pipelines) for a typical release: migrate the database, deploy the backend, then the frontend.

1. **Create the pipeline**

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

2. **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.

3. **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.
