Azure Devops Angular Environment Variables

后端 未结 2 2030
我寻月下人不归
我寻月下人不归 2021-01-03 02:22

At this point, when a commit happens to the Master branch, a build pipeline will generate an artifact based on \"ng build --prod\", so this artifact uses the production conf

2条回答
  •  青春惊慌失措
    2021-01-03 02:56

    You can add your azure repo as the artifacts to your release pipeline and then move your build pipeline tasks to the test and prod stages in release pipeline to build and deploy your app respectively. Check below steps.

    1, Go the release pipeline edit page and click Add in Artifacts part, TO add your azure repo to the release pipeline as artifacts

    2, Click Continuous deployment trigger in Artifacts part to enable Continuous deployment trigger and set the branch filter.

    3, Create stage Test and stage Prod.

    4, Copy your build pipeline tasks to Prod stage. And run ng build env=prod --prod to build your app. And then deploy your app to prod environment.

    .

    5,Copy your build pipeline tasks to Test stage. And run ng build env=test --prod to build your app. And then deploy your app to test environment.

    Hope above helps.

提交回复
热议问题