Compare commits

...
Author SHA1 Message Date
Meo597 57c844fc35 dry run cleanup dangling 2026-10-30 06:59:58 +08:00
Meo597 1367f4c93e dry run cleanup sha- 2026-10-30 06:50:55 +08:00
2 changed files with 56 additions and 0 deletions
@@ -0,0 +1,26 @@
name: Cleanup dangling container images
on:
push:
branches:
- bulk-cleanup-ghcr
# Run the two cleanup workflows one at a time.
concurrency:
group: ghcr-images
cancel-in-progress: false
jobs:
cleanup:
runs-on: ubuntu-latest
timeout-minutes: 120
permissions:
packages: write
steps:
# Untagged architecture manifests can still belong to a tagged image.
- name: Delete untagged and unreferenced versions
uses: dataaxiom/ghcr-cleanup-action@v1.2.2
with:
package: xray-core
delete-untagged: true
dry-run: true
+30
View File
@@ -0,0 +1,30 @@
name: Cleanup sha- container images
on:
push:
branches:
- bulk-cleanup-ghcr
# Run the two cleanup workflows one at a time.
concurrency:
group: ghcr-images
cancel-in-progress: false
jobs:
cleanup:
runs-on: ubuntu-latest
timeout-minutes: 120
permissions:
packages: write
steps:
# The repository needs Admin access under the package's Manage Actions access.
- name: Delete versions with only sha- tags
uses: dataaxiom/ghcr-cleanup-action@v1.2.2
with:
package: xray-core
use-regex: true
delete-tags: '^sha-'
# Preserve every non-sha- tag. The colon check avoids matching digests.
exclude-tags: '^(?!sha-)[^:]+$'
delete-untagged: false
dry-run: true