Skip to content

Release Chart apecloud-mysql #58

Release Chart apecloud-mysql

Release Chart apecloud-mysql #58

Workflow file for this run

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
- oceanbase-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
- starrocks-cluster
- tdengine
- tdengine-cluster
- tidb
- tidb-cluster
- weaviate
- weaviate-cluster
- xinference
- xinference-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