We would like to define different pipelines for different triggers (e.g. on_push_master, on_pull_request, etc.) and define their configuration in their own
.yml
file.
As far as I can see, there is no way to share local code (for example, setting up the environment) between those pipelines