Skip to content

Commit 769215b

Browse files
committed
Switch container image pruning to snok/container-retention-policy
Migrate from actions/delete-package-versions to snok/container-retention-policy for consistency with the multiplatform image pruning already in use.
1 parent 75268d8 commit 769215b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/update-release-image.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ jobs:
4545
runs-on: ubuntu-latest
4646
steps:
4747
- name: Prune
48-
# v4.1.1
49-
uses: actions/delete-package-versions@0d39a63126868f5eefaa47169615edd3c0f61e20
48+
# v3.0.1
49+
uses: snok/container-retention-policy@3b0972b2276b171b212f8c4efbca59ebba26eceb
5050
with:
51-
package-name: 'library-documentation-action'
52-
package-type: 'container'
53-
min-versions-to-keep: 1
54-
delete-only-untagged-versions: 'true'
51+
account: ponylang
52+
token: ${{ secrets.GITHUB_TOKEN }}
53+
image-names: library-documentation-action
54+
tag-selection: untagged
55+
cut-off: 1d
5556
- name: Send alert on failure
5657
if: ${{ failure() }}
5758
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5

0 commit comments

Comments
 (0)