Commit 8cabd719 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: check chart is present locally on publish job

parent fcd186e8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -900,12 +900,12 @@ helm-publish:
    - if: '$HELM_PUBLISH_URL == null || $HELM_PUBLISH_URL == "" || $CI_COMMIT_REF_NAME !~ $PROD_REF || $HELM_PUBLISH_METHOD == "disabled"'
      when: never
    - if: '$AUTODEPLOY_TO_PROD == "true"'
      exists:
        - "**/Chart.yaml"
    # else: manual + blocking
    - if: $CI_COMMIT_REF_NAME # this 'if' is useless but only prevents GitLab warning :(
      when: manual
    # /!\ variables can't be used in rules:exists
    - exists:
        - "**/Chart.yaml"
      when: manual

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