Skip to content

Helm publish non-service charts glab/msosdu

Arturo Hernandez [EPAM] requested to merge ah/iap-231-publish-helm into master
  • Helm build and push to glab ACR/helm

  • helm_dir is required, it will take the specified Chart version

  • If tag is detected will use tag instead as well as release detected

  • if helm_version is set, it will overwritte the helm-version and ignore tag/release rules for tagging (osdu-base and osdu-istio use cases)

  • fixed helm-lib build versions for non-service helm charts on osdu-azure

  • Example when release branch is detected with no helm_version on any of the osdu-directories to push

  • Example with tag condition and helm_version configured in istio and base charts:

acr_publish:
  <<: *acr_helm_push
  rules:
    - if: '$AZURE == "1" && $CI_COMMIT_BRANCH =~ /^release/'
      when: on_success
    - if: '$AZURE == "1" && $CI_COMMIT_TAG'
      when: on_success
  parallel:
    # For all the helm_dir will use the tag parsed version to publish
    matrix:
      - helm_dir: osdu-airflow2
      - helm_dir: osdu-azure
      - helm_dir: osdu-ddms/standard-ddms
      - helm_dir: osdu-base
        helm_version: 1.0.0   # optional condition will overwrite the tag or release parsed version
      - helm_dir: osdu-istio
        helm_version: 1.1.6

Coded in a reusable approach, it can be either used in the future for trusted branches and push to the glab acr only (rule logic disallowed as for now), or only on publish (logic which is currently implemented).

Ref: infra-azure-provisioning#231 (closed)

Merge request reports