Skip to content

Commit

Permalink
Fix: ci chart auto-replace version (#131)
Browse files Browse the repository at this point in the history
Signed-off-by: Yin Da <[email protected]>
  • Loading branch information
Somefive authored Feb 27, 2023
1 parent 0ef0702 commit 3cdb7b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
echo "TRIMED_RELEASE_VERSION=${RELEASE_VERSION#v}" >> $GITHUB_ENV
- name: verify chart version
run: |
sed -i 's/version: 0.1.0/version: ${{ env.TRIMED_RELEASE_VERSION }}/g' ./charts/cluster-gateway/Chart.yaml
sed -i 's/version: 0.1.0/version: ${{ env.TRIMED_RELEASE_VERSION }}/g' ./charts/addon-manager/Chart.yaml
cat ./charts/cluster-gateway/Chart.yaml | grep -q 'version: ${{ env.TRIMED_RELEASE_VERSION }}'
cat ./charts/addon-manager/Chart.yaml | grep -q 'version: ${{ env.TRIMED_RELEASE_VERSION }}'
outputs:
Expand Down
2 changes: 1 addition & 1 deletion charts/addon-manager/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: cluster-gateway-addon-manager
description: A Helm chart for Cluster-Gateway Addon-Manager
type: application
version: 1.7.0
version: 0.1.0
appVersion: 1.0.0
2 changes: 1 addition & 1 deletion charts/cluster-gateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: cluster-gateway
description: A Helm chart for Cluster-Gateway
type: application
version: 1.7.0
version: 0.1.0
appVersion: 1.0.0

0 comments on commit 3cdb7b3

Please sign in to comment.