Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用基于 Docker Swarm 的 Visual Studio Team Services 设置 CI/CD。
我要部署的目标机器在专用网络下。
因此,目标机器无法从 VSTS 访问,因此我无法使用 ssh 或任何类型的 webhook 来启动部署。
为了解决这个问题,我正在考虑在目标机器上运行一些服务来定期检查是否有任何新图像被推送到注册表。
是否有任何服务涵盖此用例?
您只需要在可以访问目标机器的机器上设置一个私有代理(可以在该目标机器上设置),然后使用这个私有代理进行构建或发布。
换句话说,目标机器只需要可以从代理机器访问。
在 Linux 上部署代理