Merge branch 'run-some-jobs-only-on-gitlab-com' into 'main'

Run a couple of jobs only on Gitlab.com

See merge request components/sast!11
This commit is contained in:
Fabio Pitino 2024-06-25 19:53:41 +00:00
commit ce2ceffd8c

View file

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