From f0b6560cb83f54fda5f225421a75ec48df144ea2 Mon Sep 17 00:00:00 2001 From: Antoine Beaupré Date: Tue, 17 Oct 2023 15:24:12 -0400 Subject: do not run GitLab pages on pipelines that have access to review apps Those will clutter each other and just lead to confusion. The pages job is just a helper for users outside the repository, so it doesn't make sense to run it there. This uses the `CI_PROJECT_ROOT_NAMESPACE` variable (`tpo`) instead of the full project name so that it can be retrofitted into the template after testing. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 31fb80f..60eb76d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,4 +26,4 @@ include: # request. pages: rules: - - if: '$CI_PIPELINE_SOURCE == "merge_request"' + - if: '$CI_PROJECT_ROOT_NAMESPACE != "tpo" && $CI_PIPELINE_SOURCE == "merge_request"' -- cgit v1.2.3-54-g00ecf