Skip to content

Commit 9b77dd1

Browse files
committed
ci(github): add chart release workflow
1 parent 0b1f403 commit 9b77dd1

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Charts
2+
description: Push charts to GitHub Pages
3+
inputs:
4+
github-token:
5+
description: 'GitHub token for pushing to gh-pages branch'
6+
required: true
7+
runs:
8+
using: 'composite'
9+
steps:
10+
- name: Configure Git
11+
shell: bash
12+
run: |
13+
git config user.name "$GITHUB_ACTOR"
14+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
15+
16+
- name: Install Helm
17+
uses: azure/setup-helm@v4.2.0
18+
19+
- name: Add Helm Repos for Dependencies
20+
shell: bash
21+
run: |
22+
helm repo add bitnami https://charts.bitnami.com/bitnami
23+
24+
- name: Run chart-releaser
25+
uses: helm/chart-releaser-action@v1.6.0
26+
with:
27+
charts_dir: deploy/charts
28+
skip_existing: 'true'
29+
packages_with_index: 'true'
30+
env:
31+
CR_TOKEN: '${{ inputs.github-token }}'

.github/workflows/release.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release New Version
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
branches:
8+
- main
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Latest Changes
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Package and Publish Charts
19+
uses: ./.github/actions/publish_charts
20+
with:
21+
github-token: '${{ secrets.GITHUB_TOKEN }}'

0 commit comments

Comments
 (0)