-
Notifications
You must be signed in to change notification settings - Fork 43
162 lines (154 loc) · 4.34 KB
/
release-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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
name: Release Chart
on:
workflow_dispatch:
inputs:
chart_dir:
description: 'release specify chart dir or empty to release all'
required: false
default: ''
type: choice
options:
- ""
- apecloud-mysql
- apecloud-mysql-cluster
- apecloud-postgresql
- apecloud-postgresql-cluster
- clickhouse
- clickhouse-cluster
- doris
- doris-cluster
- elasticsearch
- elasticsearch-cluster
- etcd
- etcd-cluster
- flink
- flink-cluster
- foxlake
- foxlake-cluster
- greptimedb
- greptimedb-cluster
- halo
- halo-cluster
- influxdb
- kafka
- kafka-cluster
- llm
- llm-cluster
- mariadb
- mariadb-cluster
- milvus
- milvus-cluster
- minio
- minio-cluster
- mogdb
- mogdb-cluster
- mongodb
- mongodb-cluster
- mongodb-sharding-cluster
- mysql
- mysql-cluster
- nebula
- nebula-cluster
- neon
- neon-cluster
- oceanbase-ce
- oceanbase-ce-cluster
- official-postgresql
- official-postgresql-cluster
- openldap
- openldap-cluster
- opensearch
- opensearch-cluster
- oracle
- oracle-cluster
- oracle-mysql
- oracle-mysql-cluster
- orioledb
- orioledb-cluster
- polardbx
- polardbx-cluster
- postgresql
- postgresql-cluster
- pulsar
- pulsar-cluster
- qdrant
- qdrant-cluster
- redis
- redis-cluster
- risingwave
- risingwave-cluster
- starrocks-ce
- starrocks-ce-cluster
- tdengine
- tdengine-cluster
- tidb
- tidb-cluster
- weaviate
- weaviate-cluster
- xinference
- xinference-cluster
- yashandb
- yashandb-cluster
- zookeeper
- zookeeper-cluster
chart_version:
description: 'release specify chart version or empty to release default'
required: false
default: ''
env:
GH_TOKEN: ${{ github.token }}
run-name: Release Chart ${{ inputs.chart_dir }} ${{ inputs.chart_version }}
jobs:
release-chart:
if: ${{ inputs.chart_dir != '' }}
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
VERSION: "${{ inputs.chart_version }}"
CHART_DIR: "addons"
SPECIFY_CHART: "${{ inputs.chart_dir }}"
APECD_REF: "v0.1.52"
secrets: inherit
release-chart-all:
if: ${{ inputs.chart_dir == '' }}
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
VERSION: "${{ inputs.chart_version }}"
CHART_DIR: "addons"
SPECIFY_CHART: "${{ inputs.chart_dir }}"
APECD_REF: "v0.1.52"
ENABLE_JIHU: false
secrets: inherit
get-addons-chart-dir:
if: ${{ inputs.chart_dir == '' }}
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.get_addons_chart_dir.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- name: get addons chart dir
id: get_addons_chart_dir
run: |
addons_list=$(ls addons)
ADDONS_DIR=""
for addons_name in $( echo "$addons_list" ); do
if [[ -z "$ADDONS_DIR" ]]; then
ADDONS_DIR="{\"addon-name\":\"$addons_name\"}"
else
ADDONS_DIR="$ADDONS_DIR,{\"addon-name\":\"$addons_name\"}"
fi
done
echo "$ADDONS_DIR"
echo "matrix={\"include\":[$ADDONS_DIR]}" >> $GITHUB_OUTPUT
release-addons-chart-jihu:
needs: [ get-addons-chart-dir ]
if: ${{ inputs.chart_dir == '' }}
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.get-addons-chart-dir.outputs.matrix) }}
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
VERSION: "${{ inputs.chart_version }}"
CHART_DIR: "addons"
SPECIFY_CHART: "${{ matrix.addon-name }}"
APECD_REF: "v0.1.52"
secrets: inherit