gpt4 book ai didi

azure-devops - 不同分支/环境的不同 azure-pipelines.yml

转载 作者:行者123 更新时间:2023-12-04 15:43:14 24 4
gpt4 key购买 nike

我在“开发”分支中有 azure-pipelines.yml 配置为在每次构建后触发 CI/CD。但是对于“发布”分支,我希望有不同流程的不同管道。如何区分不同环境下管道中的不同流程?

这是我文件的开头。

trigger:
- develop

pool:
vmImage: 'ubuntu-latest'

steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'

最佳答案

These packages should be suitable for deployment to any environment, including production. Do not configure branches or builds so that each environment is built separately. - .NET DevOps for Azure by Jeffrey Palermo

据我了解,他们建议制作一个包并将相同的包部署到不同的环境。

关于azure-devops - 不同分支/环境的不同 azure-pipelines.yml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56933905/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com