Skip to content

draios/infra-action-helm-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

action-helm-ci

GitHub Action for handle CI of helm charts in a repo This is a composite action leveraging the code of draios/action-helm-tools

WARNING You need an explicit checkout before calling this action

Inputs

Required

  • chart_dir: path to chart directory. Example: k8s/redis
  • artifactory_password: Artifactory Password
  • github_token: GITHUB_TOKEN secret

Optional

Example workflow

Perform all checks on pull requests

name: publish helm chart - redis

on:

  pull_request:
    types: [opened, edited, synchronize, reopened]
    paths:
      - 'k8s/redis/**'

  push:
    branches: ["main"]
    paths:
      - 'k8s/redis/**'

jobs:
  publish:
    runs-on: self-hosted
    steps:
    - uses: actions/checkout@v2
    - uses: draios/infra-action-helm-ci@v1
      with:
        chart_dir: k8s/redis
        dry_run: ${{ ! (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
        artifactory_username: ${{ secrets.ARTIFACTORY_HELM_USERNAME }}
        artifactory_password: ${{ secrets.ARTIFACTORY_HELM_PASSWORD }}
        github_token: ${{ secrets.GITHUB_TOKEN }}