Skip to content

Commit

Permalink
Last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
moicalcob committed May 29, 2024
1 parent a82cb6c commit c9b1163
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/actions/publish-release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 }}"

0 comments on commit c9b1163

Please sign in to comment.