[英]Azure DevOps - on prem deployment pipeline
I am going to create CI/CD pipeline in Azure DevOps for.Net core web app.我将在 Azure DevOps for .Net core web 应用程序中创建 CI/CD 管道。 I need to have below procedure: CI: Visual Studio -> Azure repo -> Build on hosted agent -> create a Docker image and push it to Azure container registry CD: Deploy created image to on-prem docker swarm cluster Now, I have 2 questions: 1- how can I deploy to docker swarm cluster 2- I have to deploy directly from build agent to swarm cluster without internet access. I need to have below procedure: CI: Visual Studio -> Azure repo -> Build on hosted agent -> create a Docker image and push it to Azure container registry CD: Deploy created image to on-prem docker swarm cluster Now, I have 2 个问题: 1- 我如何部署到 docker 集群 2- 我必须直接从构建代理部署到集群集群而无需访问互联网。
I would appreciate if you can help me.如果您能帮助我,我将不胜感激。
For your requirement, I'd suggest that you could setup a private agent for Release Pipeline (CD) to deploy created image to on-prem docker swarm cluster.根据您的要求,我建议您可以为发布管道 (CD) 设置一个私有代理,以将创建的映像部署到本地 docker 集群。
For CI pipeline, you could use Microsoft Hosted agent.对于 CI 管道,您可以使用 Microsoft 托管代理。
Regarding that private agent, it should able to connect to internet, but you could restrict it just can connect to Azure DevOps by adding white-list: Allowed address lists and network connections关于那个私人代理,它应该能够连接到互联网,但您可以通过添加白名单来限制它只能连接到 Azure DevOps: 允许的地址列表和网络连接
Regarding deploy to on-prem docker swarm cluster, you could call command through Command Line task.关于部署到本地 docker swarm 集群,您可以通过命令行任务调用命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.