From 828157020afcae4e0adfa5c732e74eeb46ad50ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Douglas=20Gad=C3=AAlha?= Date: Wed, 29 Nov 2023 12:59:52 -0300 Subject: [PATCH] fix: revert to single version 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 | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index 1a5b87b..da49da5 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -43,24 +43,13 @@ jobs: - name: Build chart 🚚 run: | if [[ "${{ github.ref_type }}" == "tag" ]]; then - VERSION="${{ github.ref }}" + sed -i "s/0.0.0/${{ github.ref }}/g" helm/Chart.yaml else - VERSION="0.0.0-${GITHUB_SHA::7}" + sed -i "s/0.0.0/0.0.0-${GITHUB_SHA::7}/g" helm/Chart.yaml fi - sed -i "s/0.0.0/$VERSION/g" helm/Chart.yaml npm run build:chart -- --image cubos/disk-resizer-controller:$VERSION - if [[ "${{ github.ref_type }}" == "tag" ]]; then - sed -i "s/$VERSION/latest/g" helm/Chart.yaml - npm run build:chart -- --image cubos/disk-resizer-controller:$VERSION - else - sed -i "s/$VERSION/edge/g" helm/Chart.yaml - npm run build:chart -- --image cubos/disk-resizer-controller:$VERSION - fi - - name: Publish chart 🚀 run: | - for f in *.tgz; do - helm push $f oci://ghcr.io/cubos/charts - done + helm push *.tgz oci://ghcr.io/cubos/charts