aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@debian.org>2023-10-17 15:24:12 -0400
committerAntoine Beaupré <anarcat@debian.org>2023-10-17 15:24:12 -0400
commitf0b6560cb83f54fda5f225421a75ec48df144ea2 (patch)
tree0056a75d9fa09dd20b82b571e6de07c30aad1449 /.gitlab-ci.yml
parent8bd6bb7717a2a5c41292ef54e2610dab3497a1d8 (diff)
downloadtorspec-f0b6560cb83f54fda5f225421a75ec48df144ea2.tar.gz
torspec-f0b6560cb83f54fda5f225421a75ec48df144ea2.zip
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.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml2
1 files changed, 1 insertions, 1 deletions
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"'