Skip to content
Snippets Groups Projects
Commit 71588a38 authored by Gaël Bréard's avatar Gaël Bréard Committed by Pierre Smeyers
Browse files

fix: score and lint jobs are each launched on their corresponding branch

parent 88329637
No related branches found
No related tags found
No related merge requests found
......@@ -527,7 +527,8 @@ helm-values-review-lint:
rules:
- if: '$CI_MERGE_REQUEST_ID || $HELM_YAMLLINT_DISABLED == "true"'
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:
extends: .helm-values-lint
......@@ -537,7 +538,8 @@ helm-values-integration-lint:
rules:
- if: '$CI_MERGE_REQUEST_ID || $HELM_YAMLLINT_DISABLED == "true"'
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:
extends: .helm-values-lint
......@@ -547,7 +549,8 @@ helm-values-staging-lint:
rules:
- if: '$CI_MERGE_REQUEST_ID || $HELM_YAMLLINT_DISABLED == "true"'
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:
extends: .helm-values-lint
......@@ -557,7 +560,8 @@ helm-values-prod-lint:
rules:
- if: '$CI_MERGE_REQUEST_ID || $HELM_YAMLLINT_DISABLED == "true"'
when: never
- if: $HELM_PROD_VALUES
# only on production branch(es)
- if: '$HELM_PROD_VALUES && $CI_COMMIT_REF_NAME =~ $PROD_REF'
helm-review-score:
extends: .helm-score
......@@ -571,8 +575,8 @@ helm-review-score:
# exclude when $HELM_KUBE_SCORE_DISABLED is set
- if: '$HELM_KUBE_SCORE_DISABLED == "true"'
when: never
# else: allow failure
- if: $HELM_REVIEW_VALUES
# else: only on non-production, non-integration branches + allow failure
- if: $HELM_REVIEW_VALUES && $CI_COMMIT_REF_NAME !~ $PROD_REF && $CI_COMMIT_REF_NAME !~ $INTEG_REF
exists:
- "**/Chart.yaml"
allow_failure: true
......@@ -589,8 +593,8 @@ helm-integration-score:
# exclude when $K8S_SCORE_DISABLED is set
- if: '$HELM_KUBE_SCORE_DISABLED == "true"'
when: never
# else: allow failure
- if: $HELM_INTEG_VALUES
# else: only on integration branch(es) + allow failure
- if: $HELM_INTEG_VALUES && $CI_COMMIT_REF_NAME =~ $INTEG_REF
exists:
- "**/Chart.yaml"
allow_failure: true
......@@ -607,8 +611,8 @@ helm-staging-score:
# exclude when $K8S_SCORE_DISABLED is set
- if: '$HELM_KUBE_SCORE_DISABLED == "true"'
when: never
# else: allow failure
- if: $HELM_STAGING_VALUES
# else: only on production branch(es) + allow failure
- if: $HELM_STAGING_VALUES && $CI_COMMIT_REF_NAME =~ $PROD_REF
exists:
- "**/Chart.yaml"
allow_failure: true
......@@ -625,8 +629,8 @@ helm-prod-score:
# exclude when $K8S_SCORE_DISABLED is set
- if: '$HELM_KUBE_SCORE_DISABLED == "true"'
when: never
# else: allow failure
- if: $HELM_PROD_VALUES
# else: only on production branch(es) + allow failure
- if: $HELM_PROD_VALUES && $CI_COMMIT_REF_NAME =~ $PROD_REF
exists:
- "**/Chart.yaml"
allow_failure: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment