Setup helmfile with Helm and kubectl in GitHub Actions workflow.
- This action works on Linux.
- The AWS version of kubectl will be installed.
- Following Helm plugins will be installed
- helm-diff
- helm-s3
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup helmfile
uses: mamezou-tech/setup-helmfile@v0.7.0
- name: Test
run: |
helmfile --version
helm version
kubectl version --clienthelmfile-version: helmfile version. Default"v0.126.2".helm-version: Helm version. Default"v3.3.1"kubectl-version: kubectl version. Default1.16.13kubectl-release-date: kubectl release date. Default2020-08-04install-kubectl: Install kubectl. Defaultyesinstall-helm: Install Helm. Defaultyesinstall-helm-plugins: Install Helm plugins. Defaultyes
See "Installing kubectl - Amazon EKS" for information how to specify the kubectl version.
Example with optional inputs
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup helmfile
uses: mamezou-tech/setup-helmfile@v0.7.0
with:
helmfile-version: "v0.135.0"If you are not particular about the version of kubectl / Helm and you can use the versions pre-installed on GitHub Actions runner, you can specify inputs not to install them.
Notice: Helm plugins will be installed in this case.
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup helmfile
uses: mamezou-tech/setup-helmfile@v0.7.0
with:
install-kubectl: no
install-helm: noIf you don't want helm plugins installed, specify no for install-helm-plugins.
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup helmfile
uses: mamezou-tech/setup-helmfile@v0.7.0
with:
install-helm-plugins: no$ npm install
$ npm run package
dist/index.jsshoud be included in commit.