Commit 9bde3aa2 authored by Cédric OLIVIER's avatar Cédric OLIVIER Committed by Pierre Smeyers
Browse files

fix: dot is not evaluated in rules exists

parent 49ecd46d
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1110,6 +1110,8 @@ helm-lint:
      when: never
    - exists:
        - "$HELM_CHART_DIR/Chart.yaml"
        # workaround https://gitlab.com/gitlab-org/gitlab/-/issues/451764
        - "Chart.yaml"

# ==================================================
# Stage: package-build
@@ -1126,6 +1128,8 @@ helm-package:
  rules:
    - exists:
        - "$HELM_CHART_DIR/Chart.yaml"
        # workaround https://gitlab.com/gitlab-org/gitlab/-/issues/451764
        - "Chart.yaml"
  artifacts:
    name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
    expire_in: 1 week
@@ -1156,6 +1160,8 @@ helm-publish:
    - if: '$HELM_PUBLISH_ON == "tag" && $CI_COMMIT_TAG =~ $RELEASE_REF'
      exists:
        - "$HELM_CHART_DIR/Chart.yaml"
        # workaround https://gitlab.com/gitlab-org/gitlab/-/issues/451764
        - "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"'
@@ -1163,10 +1169,14 @@ helm-publish:
    - if: '$HELM_PUBLISH_STRATEGY == "manual"'
      exists:
        - "$HELM_CHART_DIR/Chart.yaml"
        # workaround https://gitlab.com/gitlab-org/gitlab/-/issues/451764
        - "Chart.yaml"
      when: manual
    - if: '$HELM_PUBLISH_STRATEGY == "auto"'
      exists:
        - "$HELM_CHART_DIR/Chart.yaml"
        # workaround https://gitlab.com/gitlab-org/gitlab/-/issues/451764
        - "Chart.yaml"

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