diff options
author | Antoine Beaupré <anarcat@debian.org> | 2023-10-17 15:24:12 -0400 |
---|---|---|
committer | Antoine Beaupré <anarcat@debian.org> | 2023-10-17 15:24:12 -0400 |
commit | f0b6560cb83f54fda5f225421a75ec48df144ea2 (patch) | |
tree | 0056a75d9fa09dd20b82b571e6de07c30aad1449 | |
parent | 8bd6bb7717a2a5c41292ef54e2610dab3497a1d8 (diff) | |
download | torspec-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.
-rw-r--r-- | .gitlab-ci.yml | 2 |
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"' |