Run a couple of jobs only on Gitlab.com

This commit is contained in:
Ahmed Hemdan 2024-06-25 14:02:45 +02:00
parent ef4d34b9d0
commit d9f655a96a
No known key found for this signature in database
GPG key ID: 35C579218532E2FF

View file

@ -19,6 +19,8 @@ ensure-job-added:
if [ "$count" != "1" ]; then if [ "$count" != "1" ]; then
exit 1 exit 1
fi fi
rules:
- if: ($CI_COMMIT_BRANCH || $CI_COMMIT_TAG) && $CI_SERVER_HOST =~ /gitlab.com/
# Ensure that a project description exists, because it will be important to display # Ensure that a project description exists, because it will be important to display
# the resource in the catalog. # the resource in the catalog.
@ -34,6 +36,8 @@ check-description:
else else
echo "Description set" echo "Description set"
fi fi
rules:
- if: $CI_SERVER_HOST =~ /gitlab.com/
# Ensure that a `README.md` exists in the root directory as it represents the # Ensure that a `README.md` exists in the root directory as it represents the
# documentation for the whole components repository. # documentation for the whole components repository.