Commit 47a1246d authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix(publish): remove variable from rules:exists expression (unsupported)

parent 79835f82
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -663,15 +663,16 @@ helm-publish:
  stage: publish
  script:
    - helm ${TRACE+--debug} $(get_helm_config_opt) repo index $HELM_PUBLISH_DIR --url $HELM_PUBLISH_URL $HELM_PUBLISH_ARGS
  rules:
    - if: $CI_MERGE_REQUEST_ID || $HELM_PUBLISH_URL == null || $CI_COMMIT_REF_NAME !~ $PROD_REF
      when: never
    - exists:
        - $HELM_CHART_DIR/Chart.yaml
  artifacts:
    expire_in: 1 week
    paths:
      - $HELM_PUBLISH_DIR
  rules:
    - if: $CI_MERGE_REQUEST_ID || $HELM_PUBLISH_URL == null || $CI_COMMIT_REF_NAME !~ $PROD_REF
      when: never
    # /!\ variables can't be used in rules:exists
    - exists:
        - "**/Chart.yaml"

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