Skip to content

A github action that downloads a packaged helm chart from a github release, and uploads it to a git based helm repository

License

Notifications You must be signed in to change notification settings

catalystsquad/action-upload-chart-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 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: catalystsquad/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: ""

    # Release asset label to scan for. Release assets are scanned by lower casing the
    # label and using a jq contains() check. The default value is `helm chart`, if
    # your release assets are labeled differently, specify your label here
    # Default: helm chart
    release-asset-label-contains: ""

    # 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-label-contains Release asset label to scan for. Release assets are scanned by lower casing the label and using a jq contains() check. The default value is helm chart, if your release assets are labeled differently, specify your label here helm chart 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
Output Description Default Required
random-number Random number

Example usage

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

About

A github action that downloads a packaged helm chart from a github release, and uploads it to a git based helm repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •