Skip to content

Monorepo

Several applications in one repository: one service per application, each built with its own Dockerfile.

Checked against the console on 23 Oct 2026

One Fransys service per application in the repository, all linked to the same repository. Each service has its own pipeline, which builds the image with its application’s Dockerfile.

my-repo/
└── apps/
├── api/
│ └── Dockerfile
└── front/
└── Dockerfile
  1. Add the service: one Application per subfolder, with a clear name (api, front).
  2. Link the repository: the same code origin, the same repository and the same branch.
  3. Connect CI: Fransys opens a merge request that adds its pipeline.
  4. Point to the Dockerfile: in your repository, create a CI variable specific to this service (on GitHub: Settings › Secrets and variables › Actions › Variables), for example DOCKERFILE_PATH_API = apps/api/Dockerfile. In the pipeline file added by the merge request, replace the DOCKERFILE_PATH variable with yours, then rename the file (for example fransys_api.yml) so it isn’t overwritten by the next service’s one.
  5. Merge and check: once the pipeline passes, the latest commit shows up in the service.

Repeat for each application, with its own variable (DOCKERFILE_PATH_FRONT…).

  • A typo in the Dockerfile path makes the build fail: check it in the pipeline log.
  • Every push triggers the pipelines of all the applications. To build only one, add a path filter to its pipeline (paths: on GitHub Actions, rules: changes: on GitLab CI).
  • The same approach works for GitLab.