mirror of https://github.com/Nezreka/SoulSync.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
680 B
26 lines
680 B
name: Cleanup old dev images
|
|
|
|
on:
|
|
schedule:
|
|
# Weekly on Sunday at 6 AM UTC
|
|
- cron: '0 6 * * 0'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
cleanup:
|
|
if: github.repository == 'Nezreka/SoulSync'
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
packages: write
|
|
|
|
steps:
|
|
- name: Delete old dev image tags
|
|
uses: actions/delete-package-versions@v5
|
|
with:
|
|
package-name: soulsync
|
|
package-type: container
|
|
min-versions-to-keep: 10
|
|
delete-only-pre-release-versions: false
|
|
# Only prune tags matching the dev nightly pattern (keep rolling + version tags)
|
|
ignore-versions: '^(dev|nightly|latest|\\d+\\.\\d+)$'
|