Skip to content

Commit 65c1bba

Browse files
committed
ci: Improve cleanup reliability
Replace snok/container-retention-policy which failed with HTTP 400 without any clue as to the problem.
1 parent 66a687e commit 65c1bba

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/production.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,9 @@ jobs:
8888
- name: Push with commit php8-review tag
8989
run: docker push ghcr.io/linkorb/${{ env.CI_REPOSITORY_NAME }}:php8-review
9090

91-
- name: Delete old unused container images
92-
uses: snok/container-retention-policy@v1
91+
- name: Delete old versions of the package, keeping a few of the newest
92+
uses: actions/delete-package-versions@v4
9393
with:
94-
image-names: "${{ env.CI_REPOSITORY_NAME }}"
95-
cut-off: A month ago UTC
96-
account-type: org
97-
org-name: linkorb
98-
keep-at-least: 10
99-
skip-tags: latest
100-
untagged-only: false
101-
token: ${{ secrets.GITHUB_TOKEN }}
94+
package-name: ${{ env.CI_REPOSITORY_NAME }}
95+
package-type: container
96+
min-versions-to-keep: 8

0 commit comments

Comments
 (0)