Implementing a Build Pipeline for Our Q&A App

Learn to implement a pipeline release for our application via Azure DevOps.

We are now going to change the build pipeline so that it builds and publishes all the artifacts in our Q&A app. The published artifacts that we require are as follows:

  • backend: This will contain our .NET Core backend, which will be used for the staging and production environments.

  • frontend-production: This contains our React frontend for the production environment.

  • frontend-staging: This contains our React frontend for the staging environment.

Steps to build the pipeline

Let's carry out the following steps:

  1. In our Azure DevOps project, on our build pipeline, click the “Edit” button to edit the pipeline. The build pipeline is defined in a YAML Ain't Markup Language (YAML) file called azure-pipelines. Azure DevOps lets us edit this file in its YAML editor.

Note: YAML is commonly used for configuration files because it is a little more compact than JavaScript Object Notation (JSON) and can contain comments.

The following YAML file was generated by the ASP.NET Core build pipeline template:

Get hands-on with 1400+ tech skills courses.