Skip to content
play

GitHub Action

helmfile-action

v1.9.1 Latest version

helmfile-action

play

helmfile-action

Install and run Helmfile

Installation

Copy and paste the following snippet into your .yml file.

              

- name: helmfile-action

uses: helmfile/[email protected]

Learn more about this action in helmfile/helmfile-action

Choose a version

helmfile-action

Setup Helmfile and Helm for use in GitHub Actions.

This action works on Linux, macOS and Windows

- uses: helmfile/[email protected]
  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-content : Kubeconfig content. Default "", if not empty, it will be written to $HOME/.kube/config

Example with optional inputs

- uses: helmfile/[email protected]
  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.