Modify docker-publish workflow for image retention

Updated cleanup action to keep more tagged images and removed the delete package versions step.
This commit is contained in:
Fenrir784 authored and GitHub committed 2026-03-21 19:52:19 +03:00
1 parent f5b2aea92d
commit 047d5522fe
1 file changed
+1 -13
+1 -13
View File
@@ -37,15 +37,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Clean up docker images
uses: dataaxiom/[email protected]
with:
dry-run: true
keep-n-tagged: 5
keep-n-tagged: 10
exclude-tags: latest
delete-untagged: true
delete-partial-images: true
@@ -109,11 +105,3 @@ jobs:
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
- name: Delete Package Versions
uses: actions/[email protected]
with:
package-name: e621tagger
package-type: container
num-old-versions-to-delete: 100 # optional, default is 1
min-versions-to-keep: 10 # optional, default is -1