How can I automate the deploy of different tags of the same image to a single cluster?

I am trying to implement a Pull Request style of deployment. I currently have Jenkins setup to be able to build an image and tag it based on a Pull Request ID. I’d like to then be able to deploy out that image to a “development” cluster to be tested. I’d like all these images to be running on the same cluster.

Ideally you would end up with multiple instances of a stack on the same cluster, with sub-domains for each pull request:

I am assuming that something like this could be accomplished using the Toolbelt, but I am a little uncertain of where to start.

Any ideas?

You can indeed do this with the toolbelt - it allows you to deploy a specific image tag:

cx redeploy -s "Docker App" --service web --service api:latest

You must be logged in to answer this question