Skip to content

Commit eeb2982

Browse files
committed
chore: Add 'cr.yaml' path to GitHub Actions workflow for Helm repository publishing
1 parent b9ccae5 commit eeb2982

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed

.github/workflows/publish-helm.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ on:
44
push:
55
branches:
66
- main
7-
# paths:
8-
# - 'helm/**'
9-
# - '.github/workflows/publish-helm.yml'
7+
paths:
8+
- 'helm/**'
9+
- '.github/workflows/publish-helm.yml'
10+
- 'cr.yaml'
1011

1112
permissions:
1213
contents: write
@@ -30,4 +31,5 @@ jobs:
3031
env:
3132
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
3233
with:
33-
charts_dir: helm
34+
charts_dir: helm
35+
config: cr.yaml

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,27 @@ A Kubernetes service that monitors workloads for specific annotations and sends
2626

2727
## Deployment Options
2828

29+
### Prerequisites for Helm Repository
30+
31+
Before installing from the Helm repository, ensure the GitHub Pages repository is set up:
32+
33+
1. **Enable GitHub Pages**:
34+
- Go to your repository Settings → Pages
35+
- Set Source to "Deploy from a branch"
36+
- Select the `gh-pages` branch
37+
- Save the settings
38+
39+
2. **Trigger Chart Release**:
40+
- The chart-releaser action will automatically run on pushes to `main`
41+
- It will create the `gh-pages` branch and publish the chart
42+
- You can manually trigger it by pushing changes to the `helm/` directory
43+
44+
3. **Verify Repository**:
45+
```bash
46+
# Check if the repository is available
47+
curl https://elementtech.github.io/slaking/index.yaml
48+
```
49+
2950
### Option 1: Helm Chart (Recommended)
3051

3152
The easiest way to deploy Slaking is using the provided Helm chart from the GitHub Pages repository:
@@ -272,6 +293,12 @@ Create separate values files for different environments:
272293
- Ensure proper RBAC configuration
273294
- Check service account permissions
274295

296+
4. **Helm repository not found (404 error)**
297+
- Ensure GitHub Pages is enabled for the `gh-pages` branch
298+
- Check that the chart-releaser action has run successfully
299+
- Verify the repository URL is correct: `https://elementtech.github.io/slaking`
300+
- Wait a few minutes after pushing changes for GitHub Pages to update
301+
275302
### Debug Mode
276303

277304
**Repository-based Helm deployment:**

cr.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
owner: ElementTech
2+
git-base-url: https://api.github.com/
3+
charts-repo-url: https://elementtech.github.io/slaking

0 commit comments

Comments
 (0)