.gitlab-ci.yml: limit full repo scans, stop commit specific scan

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2022-12-19 22:44:13 +02:00
parent 73ed73b620
commit 2d8b6aadc1
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -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