If you use a monorepo you can place a .buildkite/pipeline.yml
in each of the sub repos/folders and
set buildkite to look there using a pipeline command as your first step. Such as:
[[ -f "<SUB_FOLDER>/.buildkite/pipeline.yml" ]] && buildkite-agent pipeline upload <SUB_FOLDER>/.buildkite/pipeline.yml || true
Where <SUB_FOLDER> is the name of your sub repo / folder.
Unfortunately, if you try to use pre- and post-command hooks this way buildkite won't pick them up, it