Skip to content

Commit 874cb72

Browse files
committed
ci: add Helm chart-releaser workflow
1 parent 1bc765f commit 874cb72

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

.github/cr.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
owner: GeiserX
2+
git-repo-url: https://github.com/GeiserX/Pumperly
3+
charts-repo-url: https://geiserx.github.io/Pumperly
4+
packages-with-index: false
5+
index-path: index.yaml
6+
release-name-template: "{{ .Name }}-{{ .Version }}"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release Helm Chart
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'charts/pumperly/**'
9+
- '.github/workflows/release-chart.yml'
10+
workflow_dispatch:
11+
12+
jobs:
13+
release:
14+
permissions:
15+
contents: write
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Configure Git
24+
run: |
25+
git config user.name "$GITHUB_ACTOR"
26+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
27+
28+
- name: Run chart-releaser
29+
uses: helm/chart-releaser-action@v1.7.0
30+
with:
31+
charts_dir: charts
32+
config: .github/cr.yaml
33+
skip_existing: true
34+
env:
35+
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)