Skip to content

Gitness pipeline

Chart lint

Pipeline example calling the helm plugin to lint a local chart with support on arm64

version: 1
kind: pipeline
spec:
  stages:
    - name: deploy
      spec:
        steps:
          - name: home_assistant_lint
            type: run
            spec:
              container:
                image: evertjstam/drone-helm3:0.16
                pull: if-not-exists
              envs:
                CHART: ./charts
                MODE: lint
              name: home_assistant_lint

Deploy step using Helm

Local chart

Pipeline example calling the helm plugin to deploy a local chart with support on arm64

version: 1
kind: pipeline
spec:
  stages:
    - name: deploy
      spec:
        steps:
          - name: kuma_deploy
            type: run
            spec:
              container:
                image: evertjstam/drone-helm3:0.16
                pull: if-not-exists
              envs:
                CHART: ./charts
                MODE: upgrade
                NAMESPACE: kuma
                RELEASE: kuma
                WAIT_FOR_UPGRADE: "true"
                TIMEOUT: "20m"
                VALUES_FILES: values.yaml
                KUBE_API_SERVER: ${{ secrets.get("k3s_api_server") }}
                KUBE_TOKEN: ${{ secrets.get("k3s_token") }}
                KUBE_CERTIFICATE: ${{ secrets.get("k3s_cert") }}
                KUBE_SERVICE_ACCOUNT: ${{ secrets.get("k3s_service_account") }}
              name: kuma_deploy
      type: ci

Packaged chart in repo

Pipeline example calling the helm plugin to deploy a chart from a chart repository with support on arm64

version: 1
kind: pipeline
spec:
  stages:
    - name: deploy
      spec:
        steps:
          - name: vaultwarden_deploy
            type: run
            spec:
              container:
                image: evertjstam/drone-helm3:0.16
                pull: if-not-exists
              envs:
                ADD_REPOS: vaultwarden=https://charts.gabe565.com
                CHART: vaultwarden/vaultwarden
                MODE: upgrade
                NAMESPACE: vaultwarden
                RELEASE: vaultwarden
                WAIT_FOR_UPGRADE: "true"
                TIMEOUT: "20m"
                VALUES_FILES: values.yaml
                KUBE_API_SERVER: ${{ secrets.get("k3s_api_server") }}
                KUBE_TOKEN: ${{ secrets.get("k3s_token") }}
                KUBE_CERTIFICATE: ${{ secrets.get("k3s_cert") }}
                KUBE_SERVICE_ACCOUNT: ${{ secrets.get("k3s_service_account") }}
              name: vaultwarden_deploy
      type: ci