What are the best practices (if any) for coupling a docker image registry with a SCM service (such as bitbucket)?
I know a docker registry can live in artifactory, but how can I assure that the two are as tightly coupled as possible? with hub.docker.com you can view the dockerfile right there which is very nice.
For example I am worried that without due-diligence from developers the latest Docker image in the registry will not reflect the current state of the Dockerfile in SCM or vice-versa. I know it can be done manually without much effort but is there a defacto way of doing this (maybe jenkins or similar)?
Also I would think it is imperative that we can always trace back to the base Dockerfile (that we made) for any image in the registry.