From 70b25f51acfc2c16cc76fc1284b2ea7d5807f2bf Mon Sep 17 00:00:00 2001 From: Ahmed Hemdan Date: Tue, 25 Jun 2024 18:22:33 +0200 Subject: [PATCH] Run a couple of jobs only on Gitlab.com --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f71afe0..f9c85ae 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,7 +13,7 @@ ensure-semgrep-job-added: exit 1 fi rules: - - if: $CI_COMMIT_BRANCH + - if: $CI_COMMIT_BRANCH && $CI_SERVER_HOST =~ /gitlab.com/ # Ensure that a project description exists, because it will be important to display # the resource in the catalog. @@ -29,6 +29,8 @@ check-description: else echo "Description set" fi + rules: + - if: $CI_SERVER_HOST =~ /gitlab.com/ # Ensure that a `README.md` exists in the root directory as it represents the # documentation for the whole components repository.