I have a repository that uses Docker Cloud infrastructure with cache enabled. If I add a build hook to a project, even a simple one:
#!/bin/bash docker build -f $DOCKERFILE_PATH -t $IMAGE_NAME .
Caching will no longer work on this project. Remove the hook, cache works, add the hook, cache breaks.
This is a simplified example, but certain project require secrets stored and passed as build-args. Caching should be supported for these projects.