Skip to content

Commit 73237c2

Browse files
committed
Fix: add create helm package
Signed-off-by: harlee-x <[email protected]>
1 parent 2c1dd07 commit 73237c2

39 files changed

+276
-119
lines changed

.github/workflows/ci-chart.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Publish Chart
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- release-*
8+
release:
9+
types:
10+
- published
11+
tags:
12+
- v*
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
publish-charts:
19+
env:
20+
HELM_CHART_DIR: helm/charts/kdp-infra
21+
22+
runs-on: ubuntu-22.04
23+
steps:
24+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
25+
26+
- name: Get Version
27+
id: get_version
28+
run: |
29+
CHART_VERSION=${GITHUB_REF#refs/tags/}
30+
echo "CHART_VERSION=${CHART_VERSION}" >> $GITHUB_OUTPUT
31+
32+
- name: Install Helm
33+
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814
34+
with:
35+
version: v3.8.2
36+
37+
- name: Setup node
38+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
39+
with:
40+
node-version: "20"
41+
- name: Generate helm doc
42+
run: |
43+
make helm-doc-gen
44+
45+
- name: Docker Login
46+
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
47+
with:
48+
username: ${{ secrets.REG_USER }}
49+
password: ${{ secrets.REG_PASSWD }}
50+
51+
- name: Tag helm chart and push to registry
52+
run: |
53+
chart_version=${{ steps.get_version.outputs.CHART_VERSION }}
54+
sed -i "s/1.0.0/${chart_version}/g" $HELM_CHART_DIR/Chart.yaml
55+
sed -i "s/1.0.0/${chart_version}/g" $HELM_CHART_DIR/values.yaml
56+
helm package ./$HELM_CHART_DIR
57+
helm push kdp-infra-${chart_version}.tgz oci://${{ secrets.CONTAINER_REGISTRY }}/linktimecloud

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include makefiles/const.mk
22
include makefiles/build.mk
3+
include makefiles/build-helm-package.mk
34
include makefiles/dependency.mk
45

56
##@ General

catalog/mysql/metadata.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: MySQL
22
category: 系统/大数据开发工具
33
description: MySQL主从架构的容器化实现,默认创建一套MySQL主从服务,MySQL exporter和备份服务
4+
group: Middleware
45
i18n:
56
en:
67
category: system.dataManagement

catalog/operator/metadata.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Operator
22
category: 系统/大数据开发工具
33
description: Operator 是 Kubernetes 的扩展软件, 它利用定制资源管理应用及其组件。
4+
group: GlobalService
45
i18n:
56
en:
67
category: system.dataManagement
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)