-
Notifications
You must be signed in to change notification settings - Fork 43
118 lines (110 loc) · 3.19 KB
/
release-addons-cluster-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
name: Release Addons Cluster 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-postgresql
- clickhouse
- elasticsearch
- etcd
- greptimedb
- kafka
- loki
- mariadb
- milvus
- minio
- mogdb
- mongodb
- mysql
- nebula
- neon
- oceanbase-ce
- vanilla-postgresql
- opensearch
- orchestrator
- orioledb
- polardbx
- postgresql
- pulsar
- qdrant
- rabbitmq
- redis
- risingwave
- starrocks-ce
- tdengine
- tidb
- victoria-metrics
- weaviate
- yashandb
- zookeeper
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-cluster"
SPECIFY_CHART: "${{ inputs.chart_dir }}"
APECD_REF: "v0.1.68"
PROJECT_ID: "150246"
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-cluster"
SPECIFY_CHART: "${{ inputs.chart_dir }}"
APECD_REF: "v0.1.68"
ENABLE_JIHU: false
PROJECT_ID: "150246"
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-cluster)
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-cluster"
SPECIFY_CHART: "${{ matrix.addon-name }}"
APECD_REF: "v0.1.68"
PROJECT_ID: "150246"
secrets: inherit