Skip to content

Github Action to deploy Helm charts

Notifications You must be signed in to change notification settings

casavo/action-helm-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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