From 2d8b6aadc17f73904ba8d09732b119e2287ac1cb Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Mon, 19 Dec 2022 22:44:13 +0200 Subject: [PATCH] .gitlab-ci.yml: limit full repo scans, stop commit specific scan Signed-off-by: Alfred Wingate --- .gitlab-ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ec8a119..01ac23f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,17 +26,15 @@ image: registry.gitlab.com/src_prepare/gentoo-repoman-container:latest variables: GIT_SUBMODULE_STRATEGY: recursive - common_pkgcheck_args: "--color 1" - - -pkgcheck_push: - script: - - pkgcheck scan $common_pkgcheck_args --commits $CI_COMMIT_SHA + common_pkgcheck_args: '--color 1' pkgcheck_full_scan: rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' + when: never + - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH + when: manual - allow_failure: true - - if: $CI_PIPELINE_SOURCE != 'merge_request_event' script: - pkgcheck ci $common_pkgcheck_args