Skip to content

Commit

Permalink
fix ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
itboon committed Jun 5, 2023
1 parent 1e9e942 commit a48c136
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/helm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
OSS_EP: "${{ vars.OSS_EP }}"
OSS_BUCKET: "${{ vars.OSS_BUCKET }}"
CHART_INDEX_URL: "${{ vars.CHART_INDEX_URL }}"
MIRROR_HOST: "${{ vars.MIRROR_HOST }}"
run: |
export ALIOSS="${HOME}/bin/ossutil"
mkdir -p $(dirname $ALIOSS)
Expand All @@ -45,7 +46,7 @@ jobs:
rm -f /tmp/index.yaml
curl -o /tmp/index.yaml -L "$CHART_INDEX_URL"
if cat /tmp/index.yaml | grep -E '^apiVersion:' ; then
sed -i 's%- https://github\.com/sir5kong%- https://helm-charts.sir5kong.xyz/github/sir5kong%g' /tmp/index.yaml
sed -i 's%- https://github\.com/sir5kong%- https://'${MIRROR_HOST}'/github/sir5kong%g' /tmp/index.yaml
$ALIOSS cp -f /tmp/index.yaml \
"oss://${OSS_BUCKET}/kafka/index.yaml" \
--meta content-type:text/yaml
Expand Down

0 comments on commit a48c136

Please sign in to comment.