Deploys a helm chart using GitHub actions
Inputs below are additionally loaded from the payload of the deployment event payload if the action was triggered by a deployment.
release
: Helm release name. (required)namespace
: Kubernetes namespace name. (required)chart
: Helm chart path.version
: The version of the helm chart you want to deploy.values
: Helm chart values, expected to be a YAML or JSON string.dry-run
: Helm dry-run option.value-files
: Additional value files to apply to the helm chart. Expects a JSON encoded array or a string.secrets
: Secret variables to include in value file interpolation. Expects a JSON encoded map.timeout
: specify a timeout for helm deploymentrepo
: specify a URL for a helm repo to install the chart fromatomic
: If true, upgrade process rolls back changes made in case of failed upgrade. Defaults to false.
# .github/workflows/helm.yml
name: Deploy
on: ['push']
jobs:
deployment:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v1
uses: helm/kind-action@d8ccf8fb623ce1bb360ae2f45f323d9d5c5e9f00
- name: Set up Helm
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78
with:
version: v3.11.1
- name: 'Deploy'
uses: 'isovalent/helm-action@master'
with:
release: 'mysql'
namespace: 'default'
chart: 'mysql'
repo: https://charts.bitnami.com/bitnami
values: |
fullnameOverride: mysql
value-files: >-
# Example values can be provided as a YAML or JSON list of strings,
# where each string is a filename.
- example-values.yaml