I have all of my image definitions in one Git repository. I have created several Automated Builds on Docker Hub that each correspond to a folder in the Git repository. Whenever I push to the remote repository (Github), all of the images are rebuilt, even if I have updated only one.
This makes the builds extremely slow and it puts unnecessary strain to Docker servers. Having 30+ separate git repositories is not good option …
Is there a way to tell Docker Hub to rebuild an image only if the specified folder has changed? I don’t think it would be too difficult to detect the latest commit that has affected the specified folder and compare its timestamp with the latest automated build.