Automatically packages and pushes chart on pull request
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.
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.