From 4c52e32317bca39eb768a5517796a82f9560ab83 Mon Sep 17 00:00:00 2001 From: nickbreen Date: Tue, 5 Sep 2023 09:09:59 +1200 Subject: [PATCH] add container cleanup dry-run --- .github/workflows/bazel.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml index 55e7641..94faa06 100644 --- a/.github/workflows/bazel.yml +++ b/.github/workflows/bazel.yml @@ -32,6 +32,15 @@ jobs: set: | *.cache-from=type=gha *.cache-to=type=gha,mode=max + - name: Prune Dangling Container Images + uses: snok/container-retention-policy@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + account-type: personal + image-names: nickbreen/bz-platforms2/executors/* + untagged-only: true + cut-off: 1 day ago UTC + dry-run: true bazel: name: Bazel Build & Test