-
Notifications
You must be signed in to change notification settings - Fork 53
41 lines (34 loc) · 1.24 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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@v4
with:
version: "v3.13.3"
- uses: actions/checkout@v4
- 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