Setup Helmfile and Helm for use in GitHub Actions.
This action works on Linux, macOS and Windows
- uses: helmfile/[email protected]
with:
helmfile-args: applyhelmfile-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. Supports version pinning using@versionsuffix (e.g.,https://github.com/databus23/[email protected]).helmfile-auto-init: Whether to runhelmfile initbefore running helmfile command. Default"false"helmfile-kubeconfig-context: Kubeconfig context. Default"", if not empty, it will be written to$HOME/.kube/confighelm-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/[email protected],
https://github.com/jkroepke/[email protected]
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.