diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2023-02-20 11:19:53 +0300 |
---|---|---|
committer | Marcel Amirault <mamirault@gitlab.com> | 2023-02-20 11:19:53 +0300 |
commit | 4769ef10c69222fe8089efd26ad4f94d87c87dab (patch) | |
tree | 9136374bc94969ff1b67f867ac954c67beb549ec /.gitlab-ci.yml | |
parent | c2f6d688523bf5331921578b30556aaf75c3c9d9 (diff) |
Add names for most pipeline types
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 956126bd..89ea9e10 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,17 +31,35 @@ variables: # workflow:rules to prevent duplicate pipelines when pushing to a branch with an open MR. # workflow: + name: '$DOCS_PROJECT_PIPELINE_TYPE' rules: # Prevent branch pipelines if an MR is open on the branch. - if: $CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "push" && $CI_OPEN_MERGE_REQUESTS when: never # Allow merge request and scheduled pipelines. - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - - if: '$CI_PIPELINE_SOURCE == "schedule"' + variables: + DOCS_PROJECT_PIPELINE_TYPE: "MR pipeline: branch $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME" + - if: '$CI_PIPELINE_SOURCE == "schedule" && $PIPELINE_SCHEDULE_TIMING == "monthly"' + variables: + DOCS_PROJECT_PIPELINE_TYPE: "Monthly stopped environments cleanup pipeline" + - if: '$CI_PIPELINE_SOURCE == "schedule" && $CHORES_PIPELINE == "true"' + variables: + DOCS_PROJECT_PIPELINE_TYPE: "Build docker images pipeline" + - if: '$CI_PIPELINE_SOURCE == "schedule" && $PIPELINE_SCHEDULE_TIMING == "weekly"' + variables: + DOCS_PROJECT_PIPELINE_TYPE: "Hourly site deployment pipeline" + - if: '$CI_PIPELINE_SOURCE == "schedule" && $PIPELINE_SCHEDULE_TIMING == "hourly"' + variables: + DOCS_PROJECT_PIPELINE_TYPE: "Monthly stopped environments cleanup pipeline" - if: '$CI_PIPELINE_SOURCE == "pipeline"' - if: '$CI_PIPELINE_SOURCE == "trigger"' - # Allow branch pipelines for the default branch, stable branches named XX.X, and review app branches. + variables: + DOCS_PROJECT_PIPELINE_TYPE: "Review app pipeline" + # Allow branch pipelines for the default branch and stable branches named XX.X - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - - if: '$CI_COMMIT_BRANCH == "main"' + variables: + DOCS_PROJECT_PIPELINE_TYPE: "Default branch pipeline" - if: '$CI_COMMIT_BRANCH =~ /^\d{1,2}\.\d{1,2}$/' - - if: '$CI_COMMIT_BRANCH =~ /docs-preview/' + variables: + DOCS_PROJECT_PIPELINE_TYPE: "Stable branch pipeline" |