Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Amirault <4155490-marcel.amirault@users.noreply.gitlab.com>2021-05-26 07:16:43 +0300
committerEvan Read <eread@gitlab.com>2021-05-26 07:16:43 +0300
commit240951bc1ee66cba9326d088d1db4c4c16d970bf (patch)
tree39c13583334cafc95a139e438b82df0570027f62 /.gitlab-ci.yml
parent7e1018940289bd7f373f92dbc1c36c80e1116825 (diff)
Add rules for main branch
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ff5253aa..3c3de4d7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -60,6 +60,7 @@ workflow:
- if: '$CI_PIPELINE_SOURCE == "trigger"'
# Allow branch pipelines for the default branch, stable branches named XX.X, and review app branches.
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
+ - if: '$CI_COMMIT_BRANCH == "main"'
- if: '$CI_COMMIT_BRANCH =~ /^\d{1,2}\.\d{1,2}$/'
- if: '$CI_COMMIT_BRANCH =~ /docs-preview/'
@@ -79,6 +80,9 @@ workflow:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: manual
allow_failure: true
+ - if: '$CI_COMMIT_BRANCH == "main"'
+ when: manual
+ allow_failure: true
.rules_scheduled_manual:
rules:
@@ -90,6 +94,9 @@ workflow:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: manual
allow_failure: true
+ - if: '$CI_COMMIT_BRANCH == "main"'
+ when: manual
+ allow_failure: true
.rules_chores:
rules:
@@ -107,6 +114,7 @@ workflow:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
- if: '$CI_MERGE_REQUEST_ID'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
+ - if: '$CI_COMMIT_BRANCH == "main"'
- if: '$CI_COMMIT_BRANCH =~ /^\d{1,2}\.\d{1,2}$/'
.rules_prod:
@@ -127,6 +135,7 @@ workflow:
- if: '$CI_PIPELINE_SOURCE == "pipeline"|| $CI_PIPELINE_SOURCE == "trigger"'
when: never
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
+ - if: '$CI_COMMIT_BRANCH == "main"'
.rules_dev:
rules: