Skip to content

Commit 46f038b

Browse files
authored
Merge pull request #1 from platformspec/feat/helm-chart
Helm charts publishing
2 parents 055042a + 6ed220a commit 46f038b

3 files changed

Lines changed: 43 additions & 0 deletions

File tree

.cr.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
owner: platformspec
2+
git-repo: platspec-operator
3+
pages-branch: gh-pages
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release Helm Chart
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release-chart:
10+
name: Package and publish Helm chart
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Configure Git
20+
run: |
21+
git config user.name "$GITHUB_ACTOR"
22+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
23+
24+
- name: Install Helm
25+
uses: azure/setup-helm@v4
26+
27+
- name: Set chart version from tag
28+
run: |
29+
VERSION="${GITHUB_REF_NAME#v}"
30+
sed -i "s/^version:.*/version: ${VERSION}/" chart/Chart.yaml
31+
sed -i "s/^appVersion:.*/appVersion: \"${GITHUB_REF_NAME}\"/" chart/Chart.yaml
32+
33+
- name: Run chart-releaser
34+
uses: helm/chart-releaser-action@v1.6.0
35+
with:
36+
charts_dir: .
37+
config: .cr.yaml
38+
env:
39+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
charts.platformspec.io

0 commit comments

Comments
 (0)