/action-helm-deploy

Github Action to deploy Helm charts

Primary LanguagePython

Helm Deploy Action

Github Action to deploy Helm charts. This action installs Helm and deploy a Chart using the specified inputs.

Usage

Here is an example on how to use this action with a local chart:

name: Deploy
on:
  release:
    types: [ published ]

jobs:
  deployment:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - run: |
        echo "${{ secrets.KUBECFGDATA }}" | base64 -d > .kube_config.yml
    - name: Deploy
      uses: casavo/action-helm-deploy@v1
      with:
        release: myapp
        namespace: default
        chart: helm/chart
        values: |
          var: value
        values-files: |
          helm/values.yaml
          helm/values.production.yaml
      env:
        KUBECONFIG: .kube_config.yml

and with a remote chart:

name: Deploy
on:
  release:
    types: [ published ]

jobs:
  deployment:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - run: |
        echo "${{ secrets.KUBECFGDATA }}" | base64 -d > .kube_config.yml
    - name: Deploy
      uses: casavo/action-helm-deploy@v1
      with:
        release: myapp
        namespace: default
        repo: https://charts.bitnami.com/bitnami
        chart: nginx
        chart-version: 11.1.2
        values: |
          var: value
        values-files: |
          helm/values.yaml
          helm/values.production.yaml
      env:
        KUBECONFIG: .kube_config.yml