Skip to content

Commit 602aee8

Browse files
committed
Helm repo on gh-pages
Signed-off-by: izuku-sds <izuku.labs@gmail.com>
1 parent a92258c commit 602aee8

File tree

4 files changed

+68
-9
lines changed

4 files changed

+68
-9
lines changed

.github/workflows/publish-helm-charts.yaml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ name: publish-helm-chart
22

33
on:
44
push:
5-
65
workflow_dispatch:
76

87
env:
9-
CHARTS_PATH: ./charts
8+
CHARTS_PATH: charts
109

1110
jobs:
1211
prepare-matrix:
@@ -30,6 +29,7 @@ jobs:
3029
packages: write
3130

3231
needs: prepare-matrix
32+
if: ${{ needs.prepare-matrix.outputs.matrix != '[]' && needs.prepare-matrix.outputs.matrix != '' }}
3333
runs-on: ubuntu-latest
3434
strategy:
3535
fail-fast: false
@@ -62,19 +62,13 @@ jobs:
6262
run: helm package . --destination .
6363
working-directory: ${{ env.CHARTS_PATH }}/${{ matrix.chart }}
6464

65-
- name: Upload artifact
66-
uses: actions/upload-artifact@v4
67-
with:
68-
name: ${{ matrix.chart }}-chart
69-
path: ${{ env.CHARTS_PATH }}/${{ matrix.chart }}/*.tgz
70-
7165
publish:
72-
if: github.ref == 'refs/heads/main'
7366
permissions:
7467
contents: read
7568
packages: write
7669

7770
needs: [prepare-matrix, build]
71+
if: github.ref == 'refs/heads/main' && ${{ needs.prepare-matrix.outputs.matrix != '[]' && needs.prepare-matrix.outputs.matrix != '' }}
7872
runs-on: ubuntu-latest
7973
strategy:
8074
fail-fast: false
@@ -104,3 +98,25 @@ jobs:
10498
run: |
10599
helm package ${{ env.CHARTS_PATH }}/${{ matrix.chart }} --version ${{ env.VERSION }}
106100
helm push ./${{ matrix.chart }}-${{ env.VERSION }}.tgz oci://ghcr.io/${{ github.actor }}/helm-charts
101+
102+
release:
103+
permissions:
104+
contents: write
105+
needs: [prepare-matrix, build, publish]
106+
if: github.ref == 'refs/heads/main' && ${{ needs.prepare-matrix.outputs.matrix != '[]' && needs.prepare-matrix.outputs.matrix != '' }}
107+
runs-on: ubuntu-latest
108+
steps:
109+
- name: Checkout
110+
uses: actions/checkout@v4
111+
with:
112+
fetch-depth: 0
113+
114+
- name: Configure Git
115+
run: |
116+
git config user.name "${{ github.actor }}"
117+
git config user.email "${{ github.actor }}@users.noreply.github.com"
118+
119+
- name: Run chart-releaser
120+
uses: helm/chart-releaser-action@v1.7.0
121+
env:
122+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ cover.out
2929
# Helm
3030
charts/kubeflow-trainer/charts/
3131
charts/kubeflow-trainer/Chart.lock
32+
*.tgz

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,9 @@ PAPERMILL_TIMEOUT=900
152152
.PHONY: test-e2e-notebook
153153
test-e2e-notebook: ## Run Jupyter Notebook with Papermill.
154154
NOTEBOOK_INPUT=$(NOTEBOOK_INPUT) NOTEBOOK_OUTPUT=$(NOTEBOOK_OUTPUT) PAPERMILL_TIMEOUT=$(PAPERMILL_TIMEOUT) ./hack/e2e-run-notebook.sh
155+
156+
.PHONY: helm-commit
157+
helm-commit: ## Commit the changes to the helm chart.
158+
@find charts/ -mindepth 1 -maxdepth 1 -type d -exec helm dependency update {} \;
159+
@find charts/ -mindepth 1 -maxdepth 1 -type d -exec helm package {} --destination {} \;
160+
helm repo index charts/ --url https://kubeflow.github.io/trainer

charts/index.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
apiVersion: v1
2+
entries:
3+
kubeflow-trainer:
4+
- apiVersion: v2
5+
created: "2025-03-29T07:12:05.068599096+05:30"
6+
dependencies:
7+
- condition: jobset.install
8+
name: jobset
9+
repository: oci://us-central1-docker.pkg.dev/k8s-staging-images/charts
10+
version: v0.8.0
11+
description: A Helm chart for deploying Kubeflow Trainer on Kubernetes.
12+
digest: e9540df42128f5df016de0c15f087dd3f400f46f0fa136ae965a7fedd3b00e22
13+
home: https://github.com/kubeflow/trainer
14+
keywords:
15+
- kubeflow trainer
16+
maintainers:
17+
- name: andreyvelich
18+
url: https://github.com/andreyvelich
19+
- name: ChenYi015
20+
url: https://github.com/ChenYi015
21+
- name: gaocegege
22+
url: https://github.com/gaocegege
23+
- name: Jeffwan
24+
url: https://github.com/Jeffwan
25+
- name: johnugeorge
26+
url: https://github.com/johnugeorge
27+
- name: tenzen-y
28+
url: https://github.com/tenzen-y
29+
- name: terrytangyuan
30+
url: https://github.com/terrytangyuan
31+
name: kubeflow-trainer
32+
type: application
33+
urls:
34+
- https://kubeflow.github.io/trainer/kubeflow-trainer/kubeflow-trainer-2.0.0.tgz
35+
version: 2.0.0
36+
generated: "2025-03-29T07:12:05.055998684+05:30"

0 commit comments

Comments
 (0)