mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
Maybe the cleanup is fixed?
This commit is contained in:
50
.github/workflows/clear-stale-docker-images.yml
vendored
50
.github/workflows/clear-stale-docker-images.yml
vendored
@@ -12,41 +12,17 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch multi-platform package version SHAs
|
- uses: dataaxiom/ghcr-cleanup-action@v1
|
||||||
id: multi-arch-digests
|
|
||||||
run: |
|
|
||||||
package1=$(docker manifest inspect ghcr.io/sysadminsmedia/homebox | jq -r '.manifests.[] | .digest' | paste -s -d ' ' -)
|
|
||||||
echo "multi-arch-digests=$package1" >> $GITHUB_OUTPUT
|
|
||||||
- uses: snok/container-retention-policy@v3.0.0
|
|
||||||
with:
|
with:
|
||||||
skip-shas: ${{ steps.multi-arch-digests.outputs.multi-arch-digests }}
|
dry-run: true
|
||||||
# The type of account. Can be either 'org' or 'personal'.
|
delete-ghost-images: true
|
||||||
account: sysadminsmedia
|
delete-partial-images: true
|
||||||
# Image name to delete. Supports passing several names as a comma-separated list.
|
delete-orphaned-images: true
|
||||||
image-names: homebox
|
validate: true
|
||||||
# The cut-off for which to delete images older than. For example '2 days ago UTC'. Timezone is required.
|
token: '${{ github.token }}'
|
||||||
cut-off: 90d
|
owner: 'sysadminsmedia'
|
||||||
# Personal access token with read and delete scopes.
|
repository: 'homebox'
|
||||||
token: ${{ secrets.CLEANUP_PAT }}
|
package: 'homebox,devcache'
|
||||||
# Restrict deletions to images without specific tags. Supports Unix-shell style wildcards
|
use-regex: true
|
||||||
skip-tags: "!latest,!latest-rootless,!0.*,!0.*-rootless,!main,!main-rootless,!vnext,!vnext-rootless,!0,!0-rootless" # optional
|
exclude-tags: '*.*.*','0.*','0','latest','main'
|
||||||
# Do not actually delete images. Print output showing what would have been deleted.
|
older-than: 180 days
|
||||||
dry-run: true # optional, default is false
|
|
||||||
|
|
||||||
delete-old-images-devcache:
|
|
||||||
name: Delete Cache Old Images
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
packages: write
|
|
||||||
steps:
|
|
||||||
- uses: snok/container-retention-policy@v3.0.0
|
|
||||||
with:
|
|
||||||
# The type of account. Can be either 'org' or 'personal'.
|
|
||||||
account: sysadminsmedia
|
|
||||||
image-names: devcache
|
|
||||||
# The cut-off for which to delete images older than. For example '2 days ago UTC'. Timezone is required.
|
|
||||||
cut-off: 90d
|
|
||||||
# Personal access token with read and delete scopes.
|
|
||||||
token: ${{ secrets.CLEANUP_PAT }}
|
|
||||||
# Do not actually delete images. Print output showing what would have been deleted.
|
|
||||||
dry-run: true # optional, default is false
|
|
||||||
|
|||||||
Reference in New Issue
Block a user