From a65cfbe33e5b10fab2eea00f06b9921ebaaa1d64 Mon Sep 17 00:00:00 2001 From: Goutham Pratapa Date: Tue, 27 Dec 2022 08:02:19 +0530 Subject: [PATCH] ci: Fix failing helm publish pipeline (#19133) fixes: [18864](https://github.com/appsmithorg/appsmith/issues/18864) --- .github/workflows/helm-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index d56a84d24a..5941dba2f3 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -36,7 +36,7 @@ jobs: run: | set -o xtrace cat "${{ github.workspace }}/deploy/helm/Chart.yaml" - chart_version="$(awk '$1 == "version:" {print $2}' "${{ github.workspace }}/deploy/helm/Chart.yaml")" + chart_version="$(awk '$1 == "version:" {print $2}' "${{ github.workspace }}/deploy/helm/Chart.yaml" | head -1 )" echo "version=$chart_version" >> $GITHUB_OUTPUT # Scan the S3 bucket with the Helm version retrieved from Chart.yaml # If an archive with this version already exists in the bucket, fail immediately. @@ -67,6 +67,8 @@ jobs: AWS_EC2_METADATA_DISABLED: true run: | echo "Publishing new Helm chart version" + helm repo add bitnami https://charts.bitnami.com/bitnami + helm dep build helm package . aws s3 cp s3://${{ secrets.HELM_S3_BUCKET }}/index.yaml . helm repo index . --url https://${{ secrets.HELM_S3_BUCKET }} --merge index.yaml