|
|
|
|
|
by phunkystuff
4012 days ago
|
|
Here's a really simple example of a project that I had set up using docker. For my website I have it set up with continuous integration to run my tests when I merge into master and build a docker image which it then pushes to the docker registry. I then have it ssh into my host server, pull that image, then run the new container and remove the old one. Boom, i've just deployed my website by simply merging a PR into my master! This is just a simple use case, and I probably wouldn't suggest deploying a production ready site like this, but it's really cool! It's really simple to just pass around images and have things up and running on local dev's too |
|
I prefer to manually deploy, it's only one command, and I can make sure it's all worked correctly.
That said, I will be moving that command to a chat command, as I like that. But even then, it'll be a manually triggered command.
I have auto deploy setup for CI testing, as in that case I do want to know that those branches are ready for deployment to prod, when I want to.