Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action:Upload a released helm chart to a git helm charts repository

Extracts a helm chart from a release, adds it to a git helm repository, then reindexes the repository. This action is designed to be run on a release trigger, and to extract a packaged chart in .tgz format from a .tgz file such as chart.tgz.

- uses: TnLCommunity/action-upload-chart-git@undefined
  with:
    # Github token to use, must specify a PAT so that the action can clone the charts
    # repo and push changes to it
    token: ""

    # Release tag to fetch chart from
    # Default: ${{ github.event.release.tag_name }}
    tag: ""

    # the asset name containing the chart, must be a tar file
    # Default: chart.tgz
    release-asset-name: ""

    # The git repository to upload the chart to
    # Default: ${{ github.repository_owner }}/charts
    chart-repository: ""

    # The git repository ref to push the chart to
    # Default: main
    chart-repository-ref: ""
Input Description Default Required
token Github token to use, must specify a PAT so that the action can clone the charts repo and push changes to it true
tag Release tag to fetch chart from ${{ github.event.release.tag_name }} false
release-asset-name the asset name containing the chart, must be a tar file chart.tgz false
chart-repository The git repository to upload the chart to ${{ github.repository_owner }}/charts false
chart-repository-ref The git repository ref to push the chart to main false

Example usage

name: Upload Released Chart
on:
  release:
    types:
      - published
jobs:
  upload-chart-gar:
    runs-on: ubuntu-latest
    steps:
      - name: Dump Context
        uses: crazy-max/ghaction-dump-context@v1
      - name: Push Chart
        uses: tnlcommunity/action-upload-chart-git@v1
        with:
          token: ${{ secrets.GIT_RUNNER_TOKEN }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors