Build an Image from a Different Git Repository
Build microservices from other repositories
In most cases, your Codefresh pipeline will checkout a single Git repository. Codefresh also has great support for Monorepos if you have placed all your applications in a single repository.
A Codefresh pipeline is not really tied to a specific git repository, which means that by checking out multiple git repositories you can build docker images from other unrelated repositories in a single pipeline if you wish to do so.
Building Docker images from other Git repositories
Here is a Codefresh pipeline that checks out two micro-services from two separate Git repositories.
And here is the pipeline definition.
The pipeline first checks out two different Git repositories (which themselves contain Dockerfiles). Then it creates a Docker image for each one using the respective Dockerfile.
You can see both images in the Codefresh Docker registry .
Notice that there are no explicit push steps in the pipeline, as all successful Codefresh pipelines automatically push to the private Docker registry.