Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Helm
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
to be continuous...
Helm
Commits
71588a38
Commit
71588a38
authored
3 years ago
by
Gaël Bréard
Committed by
Pierre Smeyers
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: score and lint jobs are each launched on their corresponding branch
parent
88329637
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/gitlab-ci-helm.yml
+16
-12
16 additions, 12 deletions
templates/gitlab-ci-helm.yml
with
16 additions
and
12 deletions
templates/gitlab-ci-helm.yml
+
16
−
12
View file @
71588a38
...
@@ -527,7 +527,8 @@ helm-values-review-lint:
...
@@ -527,7 +527,8 @@ helm-values-review-lint:
rules
:
rules
:
-
if
:
'
$CI_MERGE_REQUEST_ID
||
$HELM_YAMLLINT_DISABLED
==
"true"'
-
if
:
'
$CI_MERGE_REQUEST_ID
||
$HELM_YAMLLINT_DISABLED
==
"true"'
when
:
never
when
:
never
-
if
:
$HELM_REVIEW_VALUES
# only on non-production, non-integration branches
-
if
:
'
$HELM_REVIEW_VALUES
&&
$CI_COMMIT_REF_NAME
!~
$PROD_REF
&&
$CI_COMMIT_REF_NAME
!~
$INTEG_REF'
helm-values-integration-lint
:
helm-values-integration-lint
:
extends
:
.helm-values-lint
extends
:
.helm-values-lint
...
@@ -537,7 +538,8 @@ helm-values-integration-lint:
...
@@ -537,7 +538,8 @@ helm-values-integration-lint:
rules
:
rules
:
-
if
:
'
$CI_MERGE_REQUEST_ID
||
$HELM_YAMLLINT_DISABLED
==
"true"'
-
if
:
'
$CI_MERGE_REQUEST_ID
||
$HELM_YAMLLINT_DISABLED
==
"true"'
when
:
never
when
:
never
-
if
:
$HELM_INTEG_VALUES
# only on integration branch(es)
-
if
:
'
$HELM_INTEG_VALUES
&&
$CI_COMMIT_REF_NAME
=~
$INTEG_REF'
helm-values-staging-lint
:
helm-values-staging-lint
:
extends
:
.helm-values-lint
extends
:
.helm-values-lint
...
@@ -547,7 +549,8 @@ helm-values-staging-lint:
...
@@ -547,7 +549,8 @@ helm-values-staging-lint:
rules
:
rules
:
-
if
:
'
$CI_MERGE_REQUEST_ID
||
$HELM_YAMLLINT_DISABLED
==
"true"'
-
if
:
'
$CI_MERGE_REQUEST_ID
||
$HELM_YAMLLINT_DISABLED
==
"true"'
when
:
never
when
:
never
-
if
:
$HELM_STAGING_VALUES
# only on production branch(es)
-
if
:
'
$HELM_STAGING_VALUES
&&
$CI_COMMIT_REF_NAME
=~
$PROD_REF'
helm-values-prod-lint
:
helm-values-prod-lint
:
extends
:
.helm-values-lint
extends
:
.helm-values-lint
...
@@ -557,7 +560,8 @@ helm-values-prod-lint:
...
@@ -557,7 +560,8 @@ helm-values-prod-lint:
rules
:
rules
:
-
if
:
'
$CI_MERGE_REQUEST_ID
||
$HELM_YAMLLINT_DISABLED
==
"true"'
-
if
:
'
$CI_MERGE_REQUEST_ID
||
$HELM_YAMLLINT_DISABLED
==
"true"'
when
:
never
when
:
never
-
if
:
$HELM_PROD_VALUES
# only on production branch(es)
-
if
:
'
$HELM_PROD_VALUES
&&
$CI_COMMIT_REF_NAME
=~
$PROD_REF'
helm-review-score
:
helm-review-score
:
extends
:
.helm-score
extends
:
.helm-score
...
@@ -571,8 +575,8 @@ helm-review-score:
...
@@ -571,8 +575,8 @@ helm-review-score:
# exclude when $HELM_KUBE_SCORE_DISABLED is set
# exclude when $HELM_KUBE_SCORE_DISABLED is set
-
if
:
'
$HELM_KUBE_SCORE_DISABLED
==
"true"'
-
if
:
'
$HELM_KUBE_SCORE_DISABLED
==
"true"'
when
:
never
when
:
never
# else: allow failure
# else:
only on non-production, non-integration branches +
allow failure
-
if
:
$HELM_REVIEW_VALUES
-
if
:
$HELM_REVIEW_VALUES
&& $CI_COMMIT_REF_NAME !~ $PROD_REF && $CI_COMMIT_REF_NAME !~ $INTEG_REF
exists
:
exists
:
-
"
**/Chart.yaml"
-
"
**/Chart.yaml"
allow_failure
:
true
allow_failure
:
true
...
@@ -589,8 +593,8 @@ helm-integration-score:
...
@@ -589,8 +593,8 @@ helm-integration-score:
# exclude when $K8S_SCORE_DISABLED is set
# exclude when $K8S_SCORE_DISABLED is set
-
if
:
'
$HELM_KUBE_SCORE_DISABLED
==
"true"'
-
if
:
'
$HELM_KUBE_SCORE_DISABLED
==
"true"'
when
:
never
when
:
never
# else: allow failure
# else:
only on integration branch(es) +
allow failure
-
if
:
$HELM_INTEG_VALUES
-
if
:
$HELM_INTEG_VALUES
&& $CI_COMMIT_REF_NAME =~ $INTEG_REF
exists
:
exists
:
-
"
**/Chart.yaml"
-
"
**/Chart.yaml"
allow_failure
:
true
allow_failure
:
true
...
@@ -607,8 +611,8 @@ helm-staging-score:
...
@@ -607,8 +611,8 @@ helm-staging-score:
# exclude when $K8S_SCORE_DISABLED is set
# exclude when $K8S_SCORE_DISABLED is set
-
if
:
'
$HELM_KUBE_SCORE_DISABLED
==
"true"'
-
if
:
'
$HELM_KUBE_SCORE_DISABLED
==
"true"'
when
:
never
when
:
never
# else: allow failure
# else:
only on production branch(es) +
allow failure
-
if
:
$HELM_STAGING_VALUES
-
if
:
$HELM_STAGING_VALUES
&& $CI_COMMIT_REF_NAME =~ $PROD_REF
exists
:
exists
:
-
"
**/Chart.yaml"
-
"
**/Chart.yaml"
allow_failure
:
true
allow_failure
:
true
...
@@ -625,8 +629,8 @@ helm-prod-score:
...
@@ -625,8 +629,8 @@ helm-prod-score:
# exclude when $K8S_SCORE_DISABLED is set
# exclude when $K8S_SCORE_DISABLED is set
-
if
:
'
$HELM_KUBE_SCORE_DISABLED
==
"true"'
-
if
:
'
$HELM_KUBE_SCORE_DISABLED
==
"true"'
when
:
never
when
:
never
# else: allow failure
# else:
only on production branch(es) +
allow failure
-
if
:
$HELM_PROD_VALUES
-
if
:
$HELM_PROD_VALUES
&& $CI_COMMIT_REF_NAME =~ $PROD_REF
exists
:
exists
:
-
"
**/Chart.yaml"
-
"
**/Chart.yaml"
allow_failure
:
true
allow_failure
:
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment