Skip to content

Housekeeping

Housekeeping #4

Workflow file for this run

name: Housekeeping
on:
schedule:
- cron: "15 0 1 * *"
jobs:
clean-ghcr:
name: Delete old container images
runs-on: ubuntu-latest
steps:
- name: Delete old releases
uses: snok/container-retention-policy@v2
with:
image-names: ${GITHUB_REPOSITORY,,}/aimaas-api, ${GITHUB_REPOSITORY,,}/aimaas-ui
cut-off: one month ago UTC
timestamp-to-use: updated_at
account-type: org
org-name: suse
keep-at-least: 3
skip-tags: latest
token: ${{ secrets.PAT }}