Publish Helm Chart #219
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Helm Chart | |
on: | |
workflow_dispatch: | |
inputs: | |
chart_name: | |
description: 'The chart to publish (use * to publish all charts)' | |
required: true | |
jobs: | |
publish-chart: | |
name: Publish ${{ github.event.inputs.chart_name }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: azure/setup-helm@v1 | |
with: | |
version: "v3.9.1" | |
- uses: actions/checkout@v2 | |
- name: Configure Git Author as Workflow Actor | |
run: | | |
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | |
git config --global user.name "${{ github.actor }}" | |
- name: Add Helm Repos | |
run: | | |
make repo-add | |
- name: Build ${{ github.event.inputs.chart_name }} Helm Chart & Push to Github Pages | |
if: github.event.inputs.chart_name != '*' | |
run: | | |
export CHART_NAME=${{ github.event.inputs.chart_name }} | |
export PUBLISH_CREDS=${{ github.actor }}:${{ github.token }} | |
make helm-publish-stable-specific-v2 | |
- name: Build All Helm Chart & Push to Github Pages | |
if: github.event.inputs.chart_name == '*' | |
run: | | |
export PUBLISH_CREDS=${{ github.actor }}:${{ github.token }} | |
make helm-publish-all |