fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
983 stars 32 forks source link

Add a trigger to make docker-compose changes to a git repo #301

Open patmagauran opened 1 year ago

patmagauran commented 1 year ago

This new trigger will clone a specified git repo in the container and make any version changes to the docker compose file there. After updating the file, it will commit and push the changes.

As a small side feature, I also added a variable for the docker-compose trigger to disable recreating the containers and only update the compose. I set that to be forcefully true for this trigger as it would not make sense to update the repo and recreate the container, but not update the actual local files.

This would be useful for a flow of updating the git repo immediately and then letting another script auto sync at a specified maintenance time. This maintains the concept that the compose file should be the ultimate source of truth for the containers.

patmagauran commented 1 year ago

I am leaving in draft state until I get this working within the docker container, rather than in the development mode.

patmagauran commented 1 year ago

I have successfully run this locally and in a docker environment. I currently am running it in my home docker setup.

patmagauran commented 1 year ago

Found issue when we have multiple instances of the same repo. Need to fix