Skip to content

Cleanup Registry

Cleanup Registry #139

name: Cleanup Registry
on:
schedule:
- cron: '0 0 * * 1' # https://crontab.guru/#0_0_*_*_1
workflow_dispatch:
env:
IMAGE_NAMES: arora-discord
jobs:
cleanup:
name: Cleanup
runs-on: ubuntu-latest
steps:
- name: Delete old versions
uses: snok/container-retention-policy@04c70fd030033036d69c0057e0d125bf25820544 # v2.1.2
with:
image-names: ${{ env.IMAGE_NAMES }}
cut-off: 2 days ago UTC
account-type: personal
skip-tags: latest,staging
token: ${{ secrets.GH_PAT }}