/helmfile-action

helmfile-action

Primary LanguageTypeScriptMIT LicenseMIT

helmfile-action

Setup Helmfile and Helm for use in GitHub Actions.

This action works on Linux, macOS and Windows

- uses: helmfile/helmfile-action@v1.0.0
  with:
    helmfile-args: apply

Optional Inputs

  • helmfile-args : helmfile arguments. Required.
  • helmfile-version : helmfile version. Default "latest".
  • helmfile-workdirectory : helmfile working directory. Default "."
  • helm-version : Helm version. Default "latest"
  • helm-plugins : Comma separated list of Helm plugins to install. Default https://github.com/databus23/helm-diff
  • helmfile-auto-init : Whether to run helmfile init before running helmfile command. Default "false"
  • helmfile-kubeconfig-context : Kubeconfig context. Default "", if not empty, it will be written to $HOME/.kube/config

Example with optional inputs

- uses: helmfile/helmfile-action@v1.0.0
  with:
    helmfile-version: 'v0.150.0'
    helm-version: 'v3.11.0'
    helm-plugins: >
      https://github.com/databus23/helm-diff,
      https://github.com/jkroepke/helm-secrets
    helmfile-args: apply --environment prod
    helmfile-auto-init: "false"

Outputs

  • exit-code : Exit code of helmfile. Useful to handle diff --detailed-exitcode.
  • helmfile-stdout : Standard output of helmfile command.
  • helmfile-stderr : Error output of helmfile command.

Build action (for maintainer)

$ npm install
$ npm run all

dist/* should be included in commit.