Skip to content

Commit 9831a3b

Browse files
committed
chore: release 1.0 ent addon chart
1 parent f4fd85b commit 9831a3b

1 file changed

Lines changed: 52 additions & 52 deletions

File tree

.github/workflows/release-helm-chart.yml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -169,55 +169,55 @@ jobs:
169169
APECD_REF: "v0.1.86"
170170
secrets: inherit
171171

172-
# release-addons-chart-ent:
173-
# needs: [ release-chart ]
174-
# uses: apecloud/apecloud-cd/.github/workflows/release-charts-enterprise.yml@v0.1.86
175-
# with:
176-
# GITHUB_REPO: "apecloud/apecloud-addons"
177-
# GITHUB_REF: "${{ github.ref_name }}"
178-
# CHART_DIR: "addons"
179-
# APECD_REF: "v0.1.86"
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/release-charts-jihu-enterprise.yml@v0.1.86
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.86"
223-
# secrets: inherit
172+
release-addons-chart-ent:
173+
needs: [ release-chart ]
174+
uses: apecloud/apecloud-cd/.github/workflows/release-charts-enterprise.yml@v0.1.86
175+
with:
176+
GITHUB_REPO: "apecloud/apecloud-addons"
177+
GITHUB_REF: "${{ github.ref_name }}"
178+
CHART_DIR: "addons"
179+
APECD_REF: "v0.1.86"
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/release-charts-jihu-enterprise.yml@v0.1.86
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.86"
223+
secrets: inherit

0 commit comments

Comments
 (0)