From 9c617d869d1ba7556fdb84920a93974c4a43968c Mon Sep 17 00:00:00 2001 From: Jason Plum Date: Wed, 22 Apr 2020 22:23:39 -0400 Subject: [PATCH] CI: disable pipeline jobs for auto-deploy branches on .com Disable CI jobs for pipelines caused by auto-deploy branches on GitLab.com The various branches created and managed by the Delivery team and the auto-deploy processes do not need to be deployed into out CI clusters, where they consume resources. They'll not be used by the teams (as far as I could confirm), are based off our master branches, which should be kept green at all times as it is. Closes #2006 --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4d7a3c4965..572ea3293b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,6 +50,9 @@ stages: - package - cleanup +.auto_deploy_items: + - &com_auto_deploy_branch_ref /^[0-9]+-[0-9]+-auto-deploy-[0-9]+$/@gitlab-org/charts/gitlab + tag_auto_deploy: stage: package rules: @@ -97,6 +100,7 @@ lint_package: - tags - triggers - /(^docs[\/-].+|.+-docs$)/ + - *com_auto_deploy_branch_ref .kubeval: stage: package @@ -113,6 +117,7 @@ lint_package: - tags - triggers - /(^docs[\/-].+|.+-docs$)/ + - *com_auto_deploy_branch_ref "Validate 1.12.9": extends: .kubeval @@ -159,6 +164,7 @@ lint_package: - master - triggers - /(^docs[\/-].+|.+-docs$)/ + - *com_auto_deploy_branch_ref review_gke: variables: @@ -201,6 +207,7 @@ review_eks: - master - triggers - /(^docs[\/-].+|.+-docs$)/ + - *com_auto_deploy_branch_ref stop_review_gke: extends: .stop_review_template @@ -347,6 +354,7 @@ review_helm_test: - master - triggers - /(^docs[\/-].+|.+-docs$)/ + - *com_auto_deploy_branch_ref production_helm_test: stage: qa @@ -391,6 +399,7 @@ debug_review: - master - triggers - /(^docs[\/-].+|.+-docs$)/ + - *com_auto_deploy_branch_ref danger-review: image: registry.gitlab.com/gitlab-org/gitlab-build-images:danger @@ -405,6 +414,7 @@ danger-review: - master - tags - triggers + - *com_auto_deploy_branch_ref script: - git version - danger --fail-on-errors=true @@ -975,6 +985,7 @@ release_package: refs: - master - /(^docs[\/-].+|.+-docs$)/ + - *com_auto_deploy_branch_ref .qa_production: extends: .qa -- GitLab