@@ -129,6 +129,62 @@ jobs:
129129 APECD_REF : " v0.1.86"
130130 secrets : inherit
131131
132+ release-result :
133+ if : github.event.action == 'published'
134+ needs : [ release-message ]
135+ runs-on : ubuntu-latest
136+ strategy :
137+ matrix :
138+ type : [image, chart]
139+ steps :
140+ - name : Restore ${{ matrix.type }} Artifact
141+ id : cache-artifact-restore
142+ uses : actions/cache/restore@v3
143+ with :
144+ path : |
145+ ${{ env.RELEASE_VERSION }}-${{ matrix.type }}
146+ key : ${{ env.RELEASE_VERSION }}-${{ matrix.type }}
147+
148+ - name : check release result
149+ run : |
150+ release_result=$( cat ${{ env.RELEASE_VERSION }}-${{ matrix.type }} )
151+ if [[ "$release_result" != "success" ]]; then
152+ exit 1
153+ fi
154+
155+ e2e-kbcli :
156+ needs : [ release-message, release-result ]
157+ uses :
apecloud/apecloud-cd/.github/workflows/[email protected] 158+ strategy :
159+ fail-fast : false
160+ matrix :
161+ test-type : [ apecloud-mysql|asmysql|asmysql-proxy|asmysql-orc|asmysql-orc-proxy|kafka|mongodb|mongodb-shard|postgresql|postgresql-etcd|redis|redis-cluster,
162+ damengdb|gaussdb|goldendb|greatdb|kingbase|mssql|oceanbase-ent|oracle|starrocks-ent|tdsql|vastbase|oceanbase-proxy,
163+ clickhouse|elasticsearch|etcd|nebula|qdrant|rocketmqe|greptimedb|polardbx|starrocks|vanilla-pg,
164+ mariadb|mogdb|oceanbase|opensearch|orioledb|orchestrator|risingwave|weaviate|yashandb|doris,
165+ influxdb|loki|minio|milvus|rabbitmq|tdengine|tidb|victoria-metrics|zookeeper|hadoop|hive ]
166+ with :
167+ GITHUB_REPO : " apecloud/kubeblocks"
168+ BRANCH_NAME : " main"
169+ WORKFLOW_ID : " e2e-kbcli.yml"
170+ APECD_REF : " v0.1.35"
171+ VERSION : " ${{ needs.release-message.outputs.release-version }}"
172+ EXTRA_ARGS : " TEST_TYPE=${{ matrix.test-type }}#CLOUD_PROVIDER=${{ vars.CLOUD_PROVIDER }}"
173+ secrets : inherit
174+
175+ delete-cache :
176+ needs : [ e2e-kbcli ]
177+ runs-on : ubuntu-latest
178+ strategy :
179+ matrix :
180+ type : [image, chart]
181+ steps :
182+ - uses : actions/checkout@v4
183+ - name : delete ${{ matrix.type }} cache
184+ continue-on-error : true
185+ run : |
186+ bash .github/utils/utils.sh --type 17 --tag-name "${{ env.RELEASE_VERSION }}-${{ matrix.type }}"
187+
132188 get-addons-chart-dir :
133189 runs-on : ubuntu-latest
134190 outputs :
@@ -169,55 +225,86 @@ jobs:
169225 APECD_REF : " v0.1.96"
170226 secrets : inherit
171227
172- # release-addons-chart-ent:
173- # needs: [ release-chart ]
174- # uses: apecloud/apecloud-cd/.github/workflows/[email protected] 175- # with:
176- # GITHUB_REPO: "apecloud/apecloud-addons"
177- # GITHUB_REF: "${{ github.ref_name }}"
178- # CHART_DIR: "addons"
179- # APECD_REF: "v0.1.96"
180- # ENABLE_JIHU: false
181- # secrets: inherit
182- #
183- # get-addons-chart-dir-ent:
184- # runs-on: ubuntu-latest
185- # outputs:
186- # matrix: ${{ steps.get_addons_chart_dir.outputs.matrix }}
187- # steps:
188- # - name: Checkout apecloud-addons Code
189- # uses: actions/checkout@v4
190- # with:
191- # repository: apecloud/apecloud-addons
192- # path: apecloud-addons
193- # ref: "${{ github.ref_name }}"
194- # token: ${{ env.GITHUB_TOKEN }}
195- #
196- # - name: get addons chart dir
197- # id: get_addons_chart_dir
198- # run: |
199- # addons_list=$(ls apecloud-addons/addons)
200- # ADDONS_DIR=""
201- # for addons_name in $( echo "$addons_list" ); do
202- # if [[ -z "$ADDONS_DIR" ]]; then
203- # ADDONS_DIR="{\"addon-name\":\"$addons_name\"}"
204- # else
205- # ADDONS_DIR="$ADDONS_DIR,{\"addon-name\":\"$addons_name\"}"
206- # fi
207- # done
208- # echo "$ADDONS_DIR"
209- # echo "matrix={\"include\":[$ADDONS_DIR]}" >> $GITHUB_OUTPUT
210- #
211- # release-addons-chart-jihu-ent:
212- # needs: [ get-addons-chart-dir-ent ]
213- # strategy:
214- # fail-fast: false
215- # matrix: ${{ fromJSON(needs.get-addons-chart-dir-ent.outputs.matrix) }}
216- # uses: apecloud/apecloud-cd/.github/workflows/[email protected] 217- # with:
218- # GITHUB_REPO: "apecloud/apecloud-addons"
219- # GITHUB_REF: "${{ github.ref_name }}"
220- # CHART_DIR: "addons"
221- # SPECIFY_CHART: "${{ matrix.addon-name }}"
222- # APECD_REF: "v0.1.96"
223- # secrets: inherit
228+ release-addons-chart-ent :
229+ needs : [ release-chart ]
230+ uses :
apecloud/apecloud-cd/.github/workflows/[email protected] 231+ with :
232+ GITHUB_REPO : " apecloud/apecloud-addons"
233+ GITHUB_REF : " ${{ github.ref_name }}"
234+ CHART_DIR : " addons"
235+ APECD_REF : " v0.1.96"
236+ ENABLE_JIHU : false
237+ secrets : inherit
238+
239+ get-addons-chart-dir-ent :
240+ runs-on : ubuntu-latest
241+ outputs :
242+ matrix : ${{ steps.get_addons_chart_dir.outputs.matrix }}
243+ steps :
244+ - name : Checkout apecloud-addons Code
245+ uses : actions/checkout@v4
246+ with :
247+ repository : apecloud/apecloud-addons
248+ path : apecloud-addons
249+ ref : " ${{ github.ref_name }}"
250+ token : ${{ env.GITHUB_TOKEN }}
251+
252+ - name : get addons chart dir
253+ id : get_addons_chart_dir
254+ run : |
255+ addons_list=$(ls apecloud-addons/addons)
256+ ADDONS_DIR=""
257+ for addons_name in $( echo "$addons_list" ); do
258+ if [[ -z "$ADDONS_DIR" ]]; then
259+ ADDONS_DIR="{\"addon-name\":\"$addons_name\"}"
260+ else
261+ ADDONS_DIR="$ADDONS_DIR,{\"addon-name\":\"$addons_name\"}"
262+ fi
263+ done
264+ echo "$ADDONS_DIR"
265+ echo "matrix={\"include\":[$ADDONS_DIR]}" >> $GITHUB_OUTPUT
266+
267+ release-addons-chart-jihu-ent :
268+ needs : [ get-addons-chart-dir-ent ]
269+ strategy :
270+ fail-fast : false
271+ matrix : ${{ fromJSON(needs.get-addons-chart-dir-ent.outputs.matrix) }}
272+ uses :
apecloud/apecloud-cd/.github/workflows/[email protected] 273+ with :
274+ GITHUB_REPO : " apecloud/apecloud-addons"
275+ GITHUB_REF : " ${{ github.ref_name }}"
276+ CHART_DIR : " addons"
277+ SPECIFY_CHART : " ${{ matrix.addon-name }}"
278+ APECD_REF : " v0.1.96"
279+ secrets : inherit
280+
281+ release-branch :
282+ needs : [ release-message, release-result ]
283+ uses :
apecloud/apecloud-cd/.github/workflows/[email protected] 284+ with :
285+ RELEASE_VERSION : " ${{ needs.release-message.outputs.release-version }}"
286+ RELEASE_BRANCH : " default"
287+ APECD_REF : " v0.1.96"
288+ secrets : inherit
289+
290+ update-addons-release-notes :
291+ needs : [ release-message, release-branch ]
292+ uses :
apecloud/apecloud-cd/.github/workflows/[email protected] 293+ with :
294+ GITHUB_REPO : " apecloud/kubeblocks-addons"
295+ BRANCH_NAME : " ${{ needs.release-branch.outputs.release-branch }}"
296+ WORKFLOW_ID : " update-release-notes.yml"
297+ APECD_REF : " v0.1.96"
298+ VERSION : " ${{ needs.release-message.outputs.release-version }}"
299+ secrets : inherit
300+
301+ update-addons-release-notes-ent :
302+ needs : [ release-message, release-branch ]
303+ uses :
apecloud/apecloud-cd/.github/workflows/[email protected] 304+ with :
305+ GITHUB_REPO : " apecloud/apecloud-addons"
306+ BRANCH_NAME : " ${{ needs.release-branch.outputs.release-branch }}"
307+ WORKFLOW_ID : " update-release-notes.yml"
308+ APECD_REF : " v0.1.96"
309+ VERSION : " ${{ needs.release-message.outputs.release-version }}"
310+ secrets : inherit
0 commit comments