mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-03-01 18:00:42 +00:00
clean up old main docker images
This commit is contained in:
parent
2619af1a67
commit
f2fe7164c4
23
.github/workflows/container_retention_policy.yml
vendored
Normal file
23
.github/workflows/container_retention_policy.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: Delete old container images
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 1 * *" # every day at midnight
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
clean-ghcr:
|
||||||
|
name: Delete old unused container images
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Delete 'spiff' main containers older than a week
|
||||||
|
uses: snok/container-retention-policy@v2
|
||||||
|
with:
|
||||||
|
image-names: spiffworkflow-backend
|
||||||
|
cut-off: Two months ago UTC
|
||||||
|
account-type: org
|
||||||
|
org-name: sartography
|
||||||
|
keep-at-least: 1
|
||||||
|
filter-tags: "main-*"
|
||||||
|
token: ${{ secrets.PERSONAL_TOKEN_FOR_CONTAINER_CLEANUP }}
|
Loading…
x
Reference in New Issue
Block a user