From 56076bc10759a3b8b0ce1f6d5898f2f86dc1a174 Mon Sep 17 00:00:00 2001 From: Shizun Ge Date: Sat, 20 Jan 2024 13:48:04 -0800 Subject: [PATCH] [workflows] stop removing dev- images. I don't think it remove the associated untagged arch specific images. Until we find a way to keep or drop the entire package, we keep all of them. --- .github/workflows/on-push.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index d029bc8..1773edf 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -57,32 +57,4 @@ jobs: labels: ${{ steps.meta.outputs.labels }} provenance: false - clean-ghcr: - name: Delete old dev container images - runs-on: ubuntu-latest - steps: - - name: Delete old dev images - uses: snok/container-retention-policy@v2 - with: - image-names: endlessh-go - cut-off: One week ago UTC - account-type: personal - token: ${{ secrets.TOKEN_DELETE_GHCR_IMAGES }} - keep-at-least: 5 - skip-tags: latest, development - filter-tags: "dev-*" - dry-run: False - # # Untagged images could be the images for different OS/Arch. Do not delete them. - # - name: Delete untagged images - # uses: snok/container-retention-policy@v2 - # with: - # image-names: endlessh-go - # cut-off: One hour ago UTC - # account-type: personal - # token: ${{ secrets.TOKEN_DELETE_GHCR_IMAGES }} - # keep-at-least: 0 - # untagged-only: True - # skip-tags: latest, development - # dry-run: False -