Skip to content

Actiont to validate a helm chart using helm lint, helm template and optionally validate that only `alpha` is merged into `main`

License

Notifications You must be signed in to change notification settings

catalystsquad/action-validate-helm-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action:Validate Helm Chart

Validates a helm chart using helm lint, and helm template commands. Optionally validates that the only branch merged into main is alpha

- uses: catalystsquad/action-validate-helm-chart@undefined
  with:
    # When true, the action will fail if the pull request is into the `main` branch
    # and the source branch is not `alpha`
    # Default: true
    validate-main-alpha-merge: ""

    # Path to the helm chart. Defaults to "chart"
    # Default: chart
    chart-path: ""

    # Args to pass to the lint command. i.e. `--set x=y`
    # Default:
    lint-args: ""

    # Args to pass to the template command. i.e. `--set x=y`
    # Default:
    template-args: ""
Input Description Default Required
validate-main-alpha-merge When true, the action will fail if the pull request is into the main branch and the source branch is not alpha true false
chart-path Path to the helm chart. Defaults to "chart" chart false
lint-args Args to pass to the lint command. i.e. --set x=y false
template-args Args to pass to the template command. i.e. --set x=y false
Output Description Default Required
random-number Random number

Example usage

name: Validate Helm Chart PR
on:
  pull_request:
    branches:
      - main
      - alpha
    paths:
      - "chart/**"
jobs:
  validate-chart:
    if: ${{ !startsWith( github.head_ref, 'automated-code-release' ) }}
    name: Lint Chart
    runs-on: ubuntu-latest
    steps:
      - uses: crazy-max/ghaction-dump-context@v1
      - uses: catalystsquad/action-validate-helm-chart@v1

About

Actiont to validate a helm chart using helm lint, helm template and optionally validate that only `alpha` is merged into `main`

Resources

License

Stars

Watchers

Forks

Packages

No packages published