From c9b1163abe2651ffdb71d5cce9ab1bf0d9449335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Calzado?= Date: Wed, 29 May 2024 16:56:38 +0200 Subject: [PATCH] Last fix --- .github/actions/publish-release/action.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/actions/publish-release/action.yaml b/.github/actions/publish-release/action.yaml index 690ea5c9..a236e128 100644 --- a/.github/actions/publish-release/action.yaml +++ b/.github/actions/publish-release/action.yaml @@ -63,7 +63,6 @@ runs: helm repo add bitnami https://charts.bitnami.com/bitnami helm dependency build chart helm package chart - echo Trigger action: ${{ inputs.trigger-action }} # Step 5: Upload Helm package - name: Upload chart @@ -74,12 +73,12 @@ runs: if: inputs.trigger-action == 'released' || inputs.trigger-action == 'prereleased' run: | gsutil cp -r "${CHARTS_BUCKET}" . - # mkdir packages-selfhosted-charts - # mv carto-helm/*.tgz packages-selfhosted-charts/ - # cp carto-${{ inputs.version }}*.tgz packages-selfhosted-charts/ - # helm repo index packages-selfhosted-charts --url "${CHARTS_REPOSITORY}" - # gsutil -h "Cache-Control:public,max-age=3600,s-maxage=3600" -m rsync -x "^index.yaml$" -d packages-selfhosted-charts/ "${CHARTS_BUCKET}" - # gsutil -h "Cache-Control:public,max-age=180,s-maxage=30" cp packages-selfhosted-charts/index.yaml "${CHARTS_BUCKET}" + mkdir packages-selfhosted-charts + mv carto-helm/*.tgz packages-selfhosted-charts/ + cp carto-${{ inputs.version }}*.tgz packages-selfhosted-charts/ + helm repo index packages-selfhosted-charts --url "${CHARTS_REPOSITORY}" + gsutil -h "Cache-Control:public,max-age=3600,s-maxage=3600" -m rsync -x "^index.yaml$" -d packages-selfhosted-charts/ "${CHARTS_BUCKET}" + gsutil -h "Cache-Control:public,max-age=180,s-maxage=30" cp packages-selfhosted-charts/index.yaml "${CHARTS_BUCKET}" # Step 6: Upload to Replicated - name: Upload release to Replicated @@ -92,4 +91,4 @@ runs: replicated release create --auto \ --promote "${{inputs.replicated-channel}}" \ --version "${{inputs.version}}" \ - --release-notes ${{ inputs.release-notes }}" + --release-notes "${{ inputs.release-notes }}"