Skip to main content

CI/CD

For Started Kit prepared CI/CD Azure pipelines yaml configurations.

  • CI: azure-pipelines.ci.yml;
  • CD: azure-pipelines.cd.yml.

CI and CD runs on the ubuntu-latest image.

CI

Features

  • Restore frontend and backend packages;
  • Build and test projects.

Triggers

The CI pipeline triggers when:

  • You create or update PR for master;
  • You push into master.

CD

Features

  • Uses dotnet sdk version depending on your global.json;
  • Restores frontend and backend packages;
  • Create production builds;
  • Migrates database;
  • Deploy services to your Azure App Services.
Prepare environment before deploy.
  • The CD does NOT create required resources for deploy such as: database, app services, service bus etc. Also, it does NOT create distributed cache! So you need prepare environment before running CD pipeline.
  • To deploy services into Azure App Services you should create Azure Resource Manager service connections and paste their names into azure-pipelines.cd.yml for azureApiSubscription and for azureIdentitySubscription.
  • For migrations, you should create in the pipeline secret variable ConnectionStrings__Default for connection string to the database with migrations tables.

Triggers

The CD pipeline triggers when the CI successfully completed on the master branch. To do this you must create the CI pipeline named starterkit-CI or modify it in the azure-pipelines.cd.yml file. For more info see Configure pipeline resource triggers.