How to trigger deployment on docker swarm




I think that I missing something, Im trying to understand how to trigger a docker swarm deployment from CircleCI, from A-Z (after docker image has pushed and we are ready for deployment).

My main question is actually how to reach the docker swarm from CircleCI, and then how to perform the update command.



I will need to do this at some point too! However, without having looked into it in detail, is it not just a question of having a deploy key in CircleCI, and an SSH command to run passwordless commands on a remote? If Docker Swarm in running on the remote, there should be a command for it, right? I guess it will involve pulling images on the remote also.

Thus, can you outline what things you have tried? This feels rather broad at the moment.