Commit 3dbb139b authored by Boris Barnier's avatar Boris Barnier Committed by Cédric OLIVIER
Browse files

fix(rules): Update rules conditions to avoid the 10000 checks limits

parent d0dbdcce
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1109,7 +1109,7 @@ helm-lint:
    - if: '$HELM_LINT_DISABLED == "true"'
      when: never
    - exists:
        - "**/Chart.yaml"
        - "$HELM_CHART_DIR/Chart.yaml"

# ==================================================
# Stage: package-build
@@ -1125,7 +1125,7 @@ helm-package:
    - helm_package
  rules:
    - exists:
        - "**/Chart.yaml"
        - "$HELM_CHART_DIR/Chart.yaml"
  artifacts:
    name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
    expire_in: 1 week
@@ -1155,18 +1155,18 @@ helm-publish:
    # auto on tag if matching release pattern
    - if: '$HELM_PUBLISH_ON == "tag" && $CI_COMMIT_TAG =~ $RELEASE_REF'
      exists:
        - "**/Chart.yaml"
        - "$HELM_CHART_DIR/Chart.yaml"
    - if: '$HELM_PUBLISH_ON == "prod" && $CI_COMMIT_REF_NAME !~ $PROD_REF'
      when: never
    - if: '$HELM_PUBLISH_ON == "protected" && $CI_COMMIT_REF_PROTECTED != "true"'
      when: never
    - if: '$HELM_PUBLISH_STRATEGY == "manual"'
      exists:
        - "**/Chart.yaml"
        - "$HELM_CHART_DIR/Chart.yaml"
      when: manual
    - if: '$HELM_PUBLISH_STRATEGY == "auto"'
      exists:
        - "**/Chart.yaml"
        - "$HELM_CHART_DIR/Chart.yaml"

# Deploy job prototype
# Can be extended to define a concrete environment