aboutsummaryrefslogtreecommitdiffstats
diff options
authorMario Limonciello <mario.limonciello@amd.com>2023-09-18 11:55:20 -0500
committerMario Limonciello <mario.limonciello@amd.com>2023-09-18 12:34:24 -0500
commitf48da6da55078e732fb870cee4e72762e774c603 (patch)
tree95ede37089c40889f7c2bffd64dd22190a0cca1b
parent919300d19f67958b77bb8fdc239195fe55c8c22b (diff)
Run merge request pipelines for pre-commit.
Link: https://docs.gitlab.com/ee/ci/pipelines/merge_request_pipelines.html#use-rules-to-add-jobs Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
-rw-r--r--.gitlab-ci.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index efd8f90b..6e4c0264 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,10 @@ check-commits:
pre-commit:
stage: test
image: registry.gitlab.com/kernel-firmware/linux-firmware
+ rules:
+ - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
+ - if: $CI_COMMIT_TAG
+ - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script:
- pre-commit run --all-files