Gitlab CI for Monorepo Setup

  • Can also be used to create .gitlab-ci.yml files dynamically through sed replacements and include in another job
stages:
  - triggers
 
build_windows:
  stage: triggers
  trigger:
    include: win.gitlab-ci.yml
  rules:
    - changes:
      - myapp/*
 
build_linux:
  stage: triggers
  trigger:
    include: linux.gitlab-ci.yml
  rules:
    - changes:
      - myapp/*

Taken from