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
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. Defaulthttps://github.com/databus23/helm-diff
helmfile-auto-init
: Whether to runhelmfile init
before running helmfile command. Default"false"
helmfile-kubeconfig-context
: Kubeconfig context. Default""
, if not empty, it will be written to$HOME/.kube/config
helm-diff-color
: Enable helm diff plugin color output. Default"true"
.
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"
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.
$ npm install
$ npm run all
dist/*
should be included in commit.