Skip to content

Automatically handles versioning, packaging, and pushing Helm charts on pull request merge and/or push to a repository

Notifications You must be signed in to change notification settings

CloudVE/helm-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CloudVE CI scripts

Automatically packages and pushes chart on pull request

How to use

Make a file at .github/workflows/packaging.yml with the following:

name: Package
on:
  pull_request:
    types: [closed]
jobs:
  package:
    if: github.event.pull_request.merged == true
    name: Package and push
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - uses: cloudve/helm-ci@master
        with:
          chart-name: CHART_NAME
          charts-repo: CHARTS_REPO
          github-token: ${{ secrets.GITHUB_TOKEN }}
          chart-token: ${{ secrets.CHARTS_TOKEN }}
          github-labels: ${{ join(github.event.pull_request.labels.*.name, ', ') }}
          git-branch: ${{ github.event.pull_request.base.ref }}

Make sure to replace CHART_NAME and CHARTS_REPO with the correct values and to set CHARTS_TOKEN to a correct GitHub token.

How it works

A Docker image (defined in Dockerfile) runs run.sh script when Action starts. Note that the version of Helm used by the action is defined by the upstream Docker image.

action.yml is a metadata file that defines the Action inputs, outputs, etc.

About

Automatically handles versioning, packaging, and pushing Helm charts on pull request merge and/or push to a repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published