From 3fa07c26fd068e612ee3658140d6ad81d66c59e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Douglas=20Gad=C3=AAlha?= Date: Wed, 29 Nov 2023 12:20:36 -0300 Subject: [PATCH] fix: chart image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Douglas Gadêlha --- .github/workflows/helm.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index 0e9654c..e10d3b6 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -43,12 +43,13 @@ jobs: - name: Build chart 🚚 run: | if [[ "${{ github.ref_type }}" == "tag" ]]; then - sed -i "s/0.0.0/${{ github.ref }}/g" helm/Chart.yaml + VERSION="${{ github.ref }}" else - sed -i "s/0.0.0/0.0.0-${GITHUB_SHA::7}/g" helm/Chart.yaml + VERSION="0.0.0-${GITHUB_SHA::7}" fi - npm run build:chart + sed -i "s/0.0.0/$VERSION/g" helm/Chart.yaml + npm run build:chart -- --image cubos/disk-resizer-controller:$VERSION - name: Publish chart 🚀 run: |