Skip to content

A GitHub Action to turn a GitHub project into a self-hosted Helm chart repo, using stecky/yet-another-chart-releaser CLI tool

License

Notifications You must be signed in to change notification settings

annabarnes1138/yet-another-chart-releaser-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yacr GitHub Action

A GitHub action to turn a GitHub project into a self-hosted Helm chart repo, using stecky/yet-another-chart-releaser CLI tool.

yacr - Chart Releaser

Usage

Pre-requisites

  1. A GitHub repo containing a directory with your Helm charts (eg: /charts)
  2. A GitHub branch called gh-pages to store the published charts. See charts_repo_url for alternatives
  3. Create a workflow .yml file in your .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file

Inputs

For more information on inputs, see the API Documentation

  • version: The chart-releaser version to use (default: v0.4.4)
  • config: Optional config file for chart-releaser
  • charts_dir: The charts directory
  • charts_repo_url: The GitHub Pages URL to the charts repo (default: https://<owner>.github.io/<project>)
  • packages_with_index: Save a copy of the package files to the GitHub pages branch and reference them in the index

Example Workflow

Create a workflow (eg: .github/workflows/release.yml):

name: Release Charts

on:
  push:
    branches:
      - main

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0

      - name: Configure Git
        run: |
          git config user.name "$GITHUB_ACTOR"
          git config user.email "[email protected]"

      - name: Install Helm
        uses: azure/setup-helm@v1
        with:
          version: v3.4.0

      - name: Run chart-releaser
        uses: stecky/yet-another-chart-releaser-action@v1
        env:
          YACR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

This uses @stecky/yet-another-chart-releaser-action to turn your GitHub project into a self-hosted Helm chart repo. It does this – during every push to main – by checking each chart in your project, and whenever there's a new chart version, creates a corresponding GitHub release named for the chart version, adds Helm chart artifacts to the release, and creates or updates an index.yaml file with metadata about those releases, which is then hosted on GitHub Pages

Code of conduct

Participation in this project is governed by the Code of Conduct.

About

A GitHub Action to turn a GitHub project into a self-hosted Helm chart repo, using stecky/yet-another-chart-releaser CLI tool

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages