Action to lint and test installing some Helm chart(s). Mainly using helm/chart-testing-action.
- uses: hoverkraft-tech/ci-github-container@0.25.0
with:
# Description: Working directory
#
# Default: $
working-directory: ""
# Description: Set values for Helm chart. Multiple values can be set using
# multiline string. Example: key1=value1 key2=value2
#
helm-set: ""
# Description: List of Helm repositories to add before testing charts. See
# <https://helm.sh/docs/helm/helm_repo_add/>.
#
helm-repositories: ""
# Description: OCI registry where to pull and push images
#
# Default: ghcr.io
oci-registry: ""
# Description: Username used to log against the OCI registry. See
# <https://github.com/docker/login-action#usage>.
#
# Default: $
oci-registry-username: ""
# Description: Password or personal access token used to log against the OCI
# registry. Can be passed in using "secrets.GITHUB_TOKEN". See
# <https://github.com/docker/login-action#usage>.
#
# Default: $
oci-registry-password: ""
# Description: Only run lint and tests on changed charts.
#
# Default: true
check-diff-only: ""
# Description: Enable linting of the Helm chart. See
# <https://github.com/helm/chart-testing/blob/main/doc/ct_lint.md>.
#
# Default: true
enable-lint: ""
# Description: Enable installing the Helm chart. See
# <https://github.com/helm/chart-testing/blob/main/doc/ct_install.md>.
#
# Default: true
enable-install: ""
Input | Description | Default | Required |
---|---|---|---|
working-directory |
Working directory | $ |
false |
helm-set |
Set values for Helm chart. Multiple values can be set using multiline string. Example: key1=value1 key2=value2 |
false | |
helm-repositories |
List of Helm repositories to add before testing charts. See https://helm.sh/docs/helm/helm_repo_add/. |
false | |
oci-registry |
OCI registry where to pull and push images | ghcr.io |
false |
oci-registry-username |
Username used to log against the OCI registry. See https://github.com/docker/login-action#usage. |
$ |
false |
oci-registry-password |
Password or personal access token used to log against the OCI registry. Can be passed in using “secrets.GITHUB_TOKEN”. See https://github.com/docker/login-action#usage. |
$ |
false |
check-diff-only |
Only run lint and tests on changed charts. | true |
false |
enable-lint |
Enable linting of the Helm chart. See https://github.com/helm/chart-testing/blob/main/doc/ct_lint.md. |
true |
false |
enable-install |
Enable installing the Helm chart. See https://github.com/helm/chart-testing/blob/main/doc/ct_install.md. |
true |
false |
| Output | Description | Default | Required | | ———- | ————— | ———– | ———— |