-
Notifications
You must be signed in to change notification settings - Fork 38
50 lines (43 loc) · 1.21 KB
/
helm-release-tembo-operator.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Release tembo-operator Helm Chart
on:
push:
branches: [ "main" ]
paths:
- 'charts/tembo-operator/**'
workflow_dispatch:
jobs:
release-chart:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
path: 'code'
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
ref: 'gh-pages'
path: 'gh-pages'
- name: Set up Helm
uses: azure/setup-helm@v3.5
with:
version: 3.13.2
- name: Package Helm Chart
run: |
cd code/charts/tembo-operator
helm package .
- name: Update Helm repo index
run: |
mv code/charts/tembo-operator/*.tgz gh-pages/
cd gh-pages
helm repo index . --merge index.yaml --url https://tembo-io.github.io/tembo
- name: Commit and Push
run: |
cd gh-pages
git config user.name "tembo-service-user"
git config user.email "admin+github@tembo.io"
git add .
git commit -m "Update Helm chart"
git push origin gh-pages
env:
GITHUB_TOKEN: ${{ secrets.SERVICE_USER_GITHUB_SSH_KEY }}