From 13fc5795a9057999c4bb38ddac4e429933673bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fahller?= Date: Mon, 23 Sep 2024 13:04:32 +0200 Subject: [PATCH] Dry-run pruning of old untagged images --- .github/workflows/prune-old-images.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/prune-old-images.yml diff --git a/.github/workflows/prune-old-images.yml b/.github/workflows/prune-old-images.yml new file mode 100644 index 0000000..2a0dc5f --- /dev/null +++ b/.github/workflows/prune-old-images.yml @@ -0,0 +1,17 @@ +on: + schedule: + - cron: "12 11 * * *" + +jobs: + delete-old-untagged: + name: "Delete untagged containers older that 4 weeks" + runs-on: ubuntu-latest + steps: + - uses: snok/container-retention-policy@v3.0.0 + with: + account: rollbear + token: ${{ secrets.PAT }} + image-names: "gcc clang" + tag-selection: untagged + cut-off: 4w + dry-run: true