The CI pipeline runs on every commit in my Gitlab repository at work. Is there way to disable that and only run the CI pipeline on an open merge request to the master branch?
Any help is appreciated. Thanks.
There is currently no configuration option to do that. Here are some things that can be used to "disable" a pipeline build.
[ci skip]
inside the commit message will not trigger a pipeline on push.except
and only
options on all jobs inside the pipeline. To avoid duplication in this case, you can use Anchors.Update: GitLab 11.7
When pushing to GitLab you can skip triggering a pipeline by passing ci.skip option to the push command: git push -o ci.skip