I am going to create CI/CD pipeline in Azure DevOps for .Net core web app. 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 would appreciate if you can help me.
docker stack deploy ...
command to deploy your application to swarm in docker task 0.* version. I am not sure if it is feasible. 2. Hosted agents must have access to the Internet to connect to Azure Pipelines or Team Foundation Server. You can refer to this document. – user12163310