Skip to content

Commit

Permalink
workflow delete-package-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
shoce committed Nov 30, 2024
1 parent 03ad18d commit d7c9d78
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
run: |
sed -i -e "s/__VERSION__/$VERSION/g" helm/Chart.yaml
cat helm/Chart.yaml
HELM_CHART_NAME=$( yq .name helm/Chart.yaml )
echo "HELM_CHART_NAME=$HELM_CHART_NAME" >> $GITHUB_ENV
- name: push
uses: bsord/helm-push@v4
Expand All @@ -42,3 +44,10 @@ jobs:
force: true
chart-folder: helm

- uses: actions/delete-package-versions@v5
with:
package_name: ${{ env.HELM_CHART_NAME }}
package_type: container
min-versions-to-keep: 3


0 comments on commit d7c9d78

Please sign in to comment.