This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
Delete old container images #577
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Delete old container images | |
on: | |
schedule: | |
- cron: '0 0 * * *' # every day at midnight | |
workflow_dispatch: | |
jobs: | |
clean-ghcr: | |
name: Cleanup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Untagged Images (> 1 day) | |
uses: snok/container-retention-policy@v2 | |
with: | |
image-names: ione, ione-admin | |
cut-off: A day ago UTC | |
account-type: org | |
org-name: support-pl | |
untagged-only: true | |
token: ${{ secrets.PACKAGES_PAT }} | |
- name: Dev Images (> 2 weeks) | |
uses: snok/container-retention-policy@v2 | |
with: | |
image-names: ione, ione-admin | |
cut-off: 2 weeks ago UTC | |
account-type: org | |
org-name: support-pl | |
filter-tags: dev-* | |
filter-include-untagged: true | |
token: ${{ secrets.PACKAGES_PAT }} |