Implementing CD

Learn the implementation of Continuous Deployment (CD) for our application by utilizing pipelines in Azure DevOps.

We'll cover the following...

In this section, we are going to implement a release pipeline in Azure DevOps by implementing a CD process for our app. This process will consist of deploying to the staging environment, followed by the Cypress end-to-end tests being executed before the deployment is promoted to production.

Deploying to staging

Carry out the following steps in the Azure DevOps portal to deploy a build to the staging environment:

  1. In the “Pipelines” section in the left-hand bar, select “Releases,” as illustrated in the following screenshot:

Press + to interact
Release pipelines
Release pipelines
  1. Click the “New pipeline” button.

  2. We will be prompted to select a template for the release pipeline. Let’s choose the “Azure App Service deployment” template and click “Apply”, as illustrated in the following screenshot:

Press + to interact
Release pipeline template selection
Release pipeline template selection
  1. A nice visual representation of the release pipeline will appear, along with a panel to the right, where we can set some properties of the first stage. Let's call the stage Staging ...