-
Notifications
You must be signed in to change notification settings - Fork 6
64 lines (53 loc) · 1.55 KB
/
test-helm-chart.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Test and Publish Hypha Helm Chart
on:
push:
branches:
- main
paths:
- 'hypha/VERSION'
pull_request:
branches:
- main
paths:
- 'hypha/VERSION'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Kubernetes cluster using KinD
uses: helm/[email protected]
with:
version: v0.20.0
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.11.2
- name: Create hypha namespace
run: kubectl create namespace hypha
- name: Package Helm chart
run: |
cd helm-charts
helm package hypha-server
mkdir -p ../dist
mv hypha-server-*.tgz ../dist
helm package redis
mv redis-*.tgz ../dist
helm repo index ../dist --url https://hypha-server.github.io/helm-charts/
- name: Install Hypha Helm chart from packaged .tgz
run: |
helm install redis ./dist/redis-*.tgz --namespace=hypha
helm install hypha-server ./dist/hypha-server-*.tgz --namespace=hypha
- name: Uninstall Hypha Helm chart
run: |
helm uninstall hypha-server --namespace=hypha
helm uninstall redis --namespace=hypha
- name: Upload to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: gh-pages
keep_files: true