Skip to content

Commit df444ab

Browse files
authored
chore: remove save kbe airgap tool (#647)
* chore: remove save kbe airgap tool * chore: remove save kbe airgap tool 2
1 parent c7866e6 commit df444ab

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

.github/workflows/manifests-charts-save.yml

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ jobs:
125125
runs-on: ubuntu-latest
126126
outputs:
127127
release-version: ${{ steps.save-charts.outputs.release-version }}
128-
air-gap-tool-result: ${{ steps.upload_air_gap_tool.outputs.air_gap_tool_result }}
129128
steps:
130129
- name: Checkout Code
131130
if: ${{ inputs.GITHUB_REPO == '' }}
@@ -213,30 +212,6 @@ jobs:
213212
echo "upload ${VALUES_FILE} to oss failed"
214213
fi
215214
216-
- name: Upload air-gap tool to oss
217-
id: upload_air_gap_tool
218-
run: |
219-
AIR_GAP_TOOL_RESULT=""
220-
if [[ -d "fountain/air-gap" ]]; then
221-
cd fountain
222-
RELEASE_VERSION="${{ inputs.RELEASE_VERSION }}"
223-
AIR_GAP_NAME="air-gap"
224-
AIR_GAP_TOOL_NAME="kbe-airgap-tool-${RELEASE_VERSION}.tar.gz"
225-
echo "tar ${AIR_GAP_NAME}"
226-
tar -czvf ${AIR_GAP_TOOL_NAME} ${AIR_GAP_NAME}
227-
228-
ossutil cp -rf ./${AIR_GAP_TOOL_NAME} oss://${{ env.OSS_BUCKET }}/tools/apecloud/${AIR_GAP_TOOL_NAME}
229-
upload_ret=$?
230-
if [[ $upload_ret -eq 0 ]]; then
231-
AIR_GAP_TOOL_RESULT="success"
232-
echo "upload ${AIR_GAP_TOOL_NAME} to oss successfully"
233-
else
234-
AIR_GAP_TOOL_RESULT="error"
235-
echo "upload ${AIR_GAP_TOOL_NAME} to oss failed"
236-
fi
237-
fi
238-
echo "air_gap_tool_result=${AIR_GAP_TOOL_RESULT}" >> $GITHUB_OUTPUT
239-
240215
- name: Upload charts to oss
241216
id: upload_to_oss
242217
run: |
@@ -256,8 +231,6 @@ jobs:
256231
outputs:
257232
chart-pkg-name: ${{ steps.get_save_result.outputs.chart_pkg_name }}
258233
save-result: ${{ steps.get_save_result.outputs.save_result }}
259-
air-gap-tool-pkg-name: ${{ steps.get_save_result.outputs.air_gap_tool_pkg_name }}
260-
save-air-gap-tool-result: ${{ steps.get_save_result.outputs.save_air_gap_tool_result }}
261234
steps:
262235
- name: get save result
263236
id: get_save_result
@@ -271,14 +244,6 @@ jobs:
271244
echo 'save_result='$SAVE_RESULT >> $GITHUB_OUTPUT
272245
echo 'chart_pkg_name='${CHART_PKG_NAME} >> $GITHUB_OUTPUT
273246
274-
AIR_GAP_TOOL_RESULT="${{ needs.save-charts.outputs.air-gap-tool-result }}"
275-
AIR_GAP_TOOL_PKG_NAME="kbe-airgap-tool-${{ needs.save-charts.outputs.release-version }}.tar.gz"
276-
if [[ "${AIR_GAP_TOOL_RESULT}" == "success" ]]; then
277-
AIR_GAP_TOOL_PKG_NAME="http://kubeblocks-oss.${{ env.OSS_ENDPOINT }}/tools/apecloud/${AIR_GAP_TOOL_PKG_NAME}"
278-
fi
279-
echo 'save_air_gap_tool_result='${AIR_GAP_TOOL_RESULT} >> $GITHUB_OUTPUT
280-
echo 'air_gap_tool_pkg_name='${AIR_GAP_TOOL_PKG_NAME} >> $GITHUB_OUTPUT
281-
282247
send-message:
283248
needs: [ save-result ]
284249
if: ${{ always() }}
@@ -290,15 +255,3 @@ jobs:
290255
BOT_WEBHOOK: "${{ inputs.BOT_WEBHOOK }}"
291256
APECD_REF: ${{ inputs.APECD_REF }}
292257
secrets: inherit
293-
294-
send-message-air-gap:
295-
needs: [ save-result ]
296-
if: ${{ always() && needs.save-result.outputs.save-air-gap-tool-result != '' }}
297-
uses: ./.github/workflows/feishui-message.yml
298-
with:
299-
TYPE: "2"
300-
CONTENT: "save tool ${{ needs.save-result.outputs.air-gap-tool-pkg-name }} ${{ needs.save-result.outputs.save-air-gap-tool-result }}"
301-
BOT_TYPE: "${{ inputs.BOT_TYPE }}"
302-
BOT_WEBHOOK: "${{ inputs.BOT_WEBHOOK }}"
303-
APECD_REF: ${{ inputs.APECD_REF }}
304-
secrets: inherit

0 commit comments

Comments
 (0)