Automated builds for docker?

Is there a way to automatically make builds to a docker image in case it has a new image?