mirror of
https://github.com/Fenrir784/e621tagger.git
synced 2026-12-04 23:52:25 -08:00
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:
1 parent
f5b2aea92d
commit
047d5522fe
1 file changed
+1
-13
@@ -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
|
||||
Reference in new issue
Block a user