Define CI/CD for Multiple Docker files in one repository

You can define CI/CD for multiple micro-services (Docker files) in a single repository by using the codefresh.yml file or the Codefresh UI.

YAML file

codefresh.yml

version: '1.0'

steps:

    build-step1:
        type: build
        image-name: yourname/step1
        dockerfile: path/to/Dockerfile1
        tag: ${{CF_BRANCH}}

    build-step2:
        type: build
        image-name: yourname/step2
        dockerfile: path/to/Dockerfile2
        tag: ${{CF_BRANCH}}

Codefresh UI

Follow these steps to define CI/CD for multiple micro-services located in a single repository, using the Codefresh UI.

  1. On your service profile, click the gear icon.

2016-10-12_17-24-27.png

  1. Click the Add button.

2016-10-12_17-28-55.png

  1. In the Build and Unit Test section, configure the pipeline settings.

2016-10-12_17-36-32.png