ci: Let Marge the merge bot trigger our CI

We have notice that a lot of CI activity is cause by user pushing to their
branch after having created an MR. To reduce our CI foot-print, the CI will
now only be automatically triggered when a reviewer assign the MR to the merge
bot. It will still be possible to run the CI manually but the result of that
CI won't be used by Marge.
This commit is contained in:
Nicolas Dufresne 2020-04-16 12:02:36 -04:00
parent 2871b293e1
commit d692406ab1

View file

@ -55,7 +55,7 @@ manifest:
extends: extends:
- '.global_ci_policy' - '.global_ci_policy'
rules: rules:
- if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME' - if: '$GITLAB_USER_LOGIN == "gstreamer-merge-bot"'
when: 'always' when: 'always'
- if: '$CI_PROJECT_PATH == "gstreamer/cerbero"' - if: '$CI_PROJECT_PATH == "gstreamer/cerbero"'
when: 'always' when: 'always'