Skip to content

Commit

Permalink
ci: fix chart release flow (#61)
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <wuhuizuo@126.com>

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo authored Dec 15, 2023
1 parent b64275f commit 2eb7cb6
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/charts-release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release Charts

on:
workflow_dispatch:
push:
branches:
- main
Expand Down Expand Up @@ -30,7 +31,15 @@ jobs:
with:
version: v3.8.1

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Release charts
working-directory: charts
run: |
echo "${{ github.token }}" | docker login ghcr.io -u ${{ github.actor }}
for chart in cloudevents-server dl; do
CHART_VERSION=$(grep 'version:' $chart/Chart.yaml | tail -n1 | awk '{ print $2 }')
helm package $chart
helm push $chart-${CHART_VERSION}.tgz oci://ghcr.io/pingcap-qe/ee-apps/charts
done

0 comments on commit 2eb7cb6

Please sign in to comment.