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.
recyclarr/.github/workflows/docker-retention.yml

26 lines
672 B

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Docker Retention
on:
workflow_dispatch: # TEMP
schedule:
- cron: '0 0 * * *'
jobs:
retention:
name: Enforce Retention Policy
runs-on: ubuntu-latest
steps:
- name: Delete old pre-release images
uses: snok/container-retention-policy@v2
with:
image-names: recyclarr
filter-tags: '*-dev.*'
cut-off: One week ago CST
keep-at-least: 1
account-type: org
org-name: recyclarr
token: ${{ secrets.GITHUB_TOKEN }}
token-type: github-token
dry-run: true # TEMP