Note: I am a .NET Developer that is dabbling in DevOps. I want to learn.
Current Situation:
I have my .NET Core project dockerised. It sits on GitHub and is Open Source. Using Travis CI; as soon as I check some code into the GitHub repository, Travis CI builds a fresh docker image and pushes it to Docker Hub with two tags $BUILD_NUMBER
and latest
.
I have an Ubuntu VPS where I plan on running my dockerised applications.
Question:
Once the images are uploaded to Docker Hub (i.e. travis has finished the steps inside .travis.yml), how can I get those latest images to automatically run on my VPS?
This is where I am stuck.
I understand that once the docker containers are running on my VPS, I have to set up nginx as proxy ...etc, so I'm OK with that. I am just stuck on getting the latest docker image running on my VPS.