Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
282 views
in Technique[技术] by (71.8m points)

One click deploy of multiple artifacts in Azure Devops

I have a solution with about 20 projects, each it's own service and we are moving to Azure. Currently we are using Octopus to deploy our solution and we could continue using that in Azure but if possible would like to drop it.

We don't run Continious Deployment.

What I am looking for is a way to deploy all our 20 or so projects without having to deploy them individualy. In other words I'm looking for a "button" that allows me to deploy all services to a certain environment.

I can't seem to find that does it exist?

question from:https://stackoverflow.com/questions/66059557/one-click-deploy-of-multiple-artifacts-in-azure-devops

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You didn't say where you're deploying your apps to but I'm going to assume it's Azure App Service (since you said "moving to Azure"). Yes, multiple projects can be deployed using a single pipeline.

The now "legacy" way of doing this would be simply setup your build pipeline, and then setup a release pipeline with multiple stages. Each stage of your release pipeline can be one app/project.

The "modern" way that Microsoft recommends is to use the new multi-stage pipeline where you can define your build and release parameters in the same YAML template.

Here's a guide I found that shows a simple example of deploying multiple projects from a single solution to Azure App Service in Azure DevOps (this is the legacy way). https://www.johansmarius.com/2019/10/deploying-multiple-projects-from-one_18.html

Cheers!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...