Skip to content

Commit ec37570

Browse files
authored
Fix helm chart release (#36)
* Update chart-release.yaml * Update chart-release.yaml * Update chart-release.yaml * Fixup Helm release * Update chart-release.yaml * Update README.md * Update chart-release.yaml * Update chart release process * Update chart-release.yaml * Update chart-release.yaml * Update chart-release.yaml * Set correct versions
1 parent 1f3c691 commit ec37570

4 files changed

Lines changed: 38 additions & 7 deletions

File tree

.github/workflows/chart-release.yaml

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- main
77
paths:
88
- 'charts/**'
9+
10+
workflow_dispatch:
911

1012
jobs:
1113
release:
@@ -14,7 +16,7 @@ jobs:
1416
runs-on: ubuntu-latest
1517
steps:
1618
- name: Checkout
17-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
1820
with:
1921
fetch-depth: 0
2022

@@ -23,7 +25,32 @@ jobs:
2325
git config user.name "$GITHUB_ACTOR"
2426
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
2527
26-
- name: Run chart-releaser
27-
uses: helm/chart-releaser-action@v1.6.0
28-
env:
29-
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
28+
- name: Install Helm
29+
uses: azure/setup-helm@v4
30+
31+
- name: Add dependency chart repos
32+
run: |
33+
helm repo add bitnami https://charts.bitnami.com/bitnami
34+
35+
- name: Package charts
36+
run: |
37+
mkdir -p helm-packages
38+
for DIR in charts/*; do
39+
if [ -f "${DIR}/Chart.yaml" ]; then
40+
echo "Packaging ${DIR}"
41+
helm dependency update "${DIR}"
42+
helm package "${DIR}" -d helm-packages
43+
fi
44+
done
45+
git fetch --all
46+
47+
- name: Upload charts
48+
run: |
49+
git checkout gh-pages --force
50+
helm repo index helm-packages/ --merge index.yaml
51+
cp helm-packages/* .
52+
rm -rf helm-packages
53+
echo "New index.yaml: " && cat index.yaml
54+
git add --all
55+
git commit -m "Update Helm charts index"
56+
git push origin gh-pages

.github/workflows/proxy-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Proxy CI
33
on:
44
push:
55
branches: [ '*' ]
6+
paths-ignore:
7+
- 'charts/**'
8+
- '**/*.md'
69
pull_request:
710
branches: [ main ]
811
types: [opened, synchronize, reopened]

charts/configcat-proxy/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ The ConfigCat Proxy provides a local caching proxy for ConfigCat feature flags a
2020
### Installing the Chart
2121

2222
```bash
23-
helm install configcat-proxy ./configcat-proxy \
23+
helm repo add configcat https://configcat.github.io/configcat-proxy
24+
helm install configcat-proxy configcat/configcat-proxy \
2425
--set configcat.sdks.configurations='{\"production\":\"YOUR_PRODUCTION_SDK_KEY\",\"staging\":\"YOUR_STAGING_SDK_KEY\"}'
2526
```
2627

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sonar.organization=configcat
33
sonar.projectName=configcat-proxy
44

55
sonar.sources=.
6-
sonar.exclusions=**/*_test.go,internal/resources/**,grpc/proto/**,internal/testutils/**,sdk/testing.go
6+
sonar.exclusions=**/*_test.go,internal/resources/**,grpc/proto/**,internal/testutils/**,sdk/testing.go,charts/**
77

88
sonar.tests=.
99
sonar.test.inclusions=**/*_test.go

0 commit comments

Comments
 (0)