Automatic builds from any repo

Is this possible to use any other repo for automatic builds?

Something like
clone url: git://my.gitserver.com/myrepo.git
build trigger: https://registry.hub.docker.com/u/foo/bar/trigger/de78-5ddb-11e4-899f-4a478e3f/

and when I doing request on build trigger url, it clones from clone url and makes build?

Yes, you could do this. You would still need to put the base Dockerfile in either GitHub or Bitbucket. But in the Dockerfile you could install git and clone from other repositories.

But in this case Dockerfile is still on github.

so long as your Dockerfile is on GitHub or Bitbucket (as you indicate it is), you can write a Dockerfile like:

FROM ubuntu
RUN apt-get update && apt-get install git
RUN git clone git://my.gitserver.com/myrepo.git
WORKDIR /myrepo
RUN make

See the post above

omg post must be at least 20 characters