Using lachlanevenson/k8s-helm docker image

Init helm (only client)

pipeline:
  build:
    image: lachlanevenson/k8s-helm:v2.11.0
    commands:
      - helm init -c

Add new helm repository

pipeline:
  build:
    image: lachlanevenson/k8s-helm:v2.11.0
    commands:
      - helm repo add stable https://kubernetes-charts.storage.googleapis.com

Helm dependency update

pipeline:
  build:
    image: lachlanevenson/k8s-helm:v2.11.0
    commands:
      - helm dependency update ./foo-bar-chart

Create helm package with dependency update and save to specific directory

pipeline:
  build:
    image: lachlanevenson/k8s-helm:v2.11.0
    commands:
      - mkdir -p ./output
      - helm package -u ./foo-bar-chart -d ./output

Read more about how to use helm commands