From 3cdb7b31ae907e6d0336ae3e695b87bd9312bced Mon Sep 17 00:00:00 2001 From: Somefive Date: Mon, 27 Feb 2023 17:19:49 +0800 Subject: [PATCH] Fix: ci chart auto-replace version (#131) Signed-off-by: Yin Da --- .github/workflows/go-release.yml | 2 ++ charts/addon-manager/Chart.yaml | 2 +- charts/cluster-gateway/Chart.yaml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index 7c7ccacf..90be193b 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -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: diff --git a/charts/addon-manager/Chart.yaml b/charts/addon-manager/Chart.yaml index 57260efc..3c68a7f5 100644 --- a/charts/addon-manager/Chart.yaml +++ b/charts/addon-manager/Chart.yaml @@ -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 diff --git a/charts/cluster-gateway/Chart.yaml b/charts/cluster-gateway/Chart.yaml index 78b91636..a85a6e86 100644 --- a/charts/cluster-gateway/Chart.yaml +++ b/charts/cluster-gateway/Chart.yaml @@ -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