Skip to content

Commit e3f30df

Browse files
committed
docker: update cleanup action for GitHub Packages images
Replaced the package version deletion action with a new cleanup action that deletes ghost images and untagged versions. Signed-off-by: Chiho Sin <[email protected]>
1 parent 8d21af9 commit e3f30df

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/docker_build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,8 @@ jobs:
8888

8989
- name: Cleanup GitHub Packages images
9090
if: ${{ inputs.push }}
91-
uses: actions/delete-package-versions@v4
91+
uses: dataaxiom/ghcr-cleanup-action@v1
9292
with:
93-
package-name: ghcr.io/${{ github.repository }}
94-
package-type: container
95-
min-versions-to-keep: 5
96-
delete-only-untagged-versions: true
93+
delete-ghost-images: true
94+
delete-untagged: true
95+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)