When I wanted to configure the Github webhook for Docker automated builds I got warning: "Only add to PUBLIC repo, otherwise Private code will end up on the public Docker index".
From the other side, when I go to docker documentation it says: During the build process, Docker will copy the contents of your Dockerfile. It will also add it to the Docker Hub for the Docker community (for public repos) or approved team members/orgs (for private repos) to see on the repository page.
So which statment shall I rely on? I have private Github repository and private Docker repository as automated build. If I enable webhook will any of my code get exposed?
UPDATE AND FINAL RESULT:
After some discussion with github support the update to Docker webhook documentation was made: github-services:90ae97f. It is safe to link private github repo with private docker repo.
edit We have updated the text to give better information and eliminate this confusion. Thanks for raising the issue. https://github.com/github/github-services/pull/946
Old Text
It shouldn't. The text on GitHub is left over from before our private repository service. Now if you make your repo private, your automated build will be private.--