From 1683280c4531f74884c112f443f8ab39581d1c1d Mon Sep 17 00:00:00 2001 From: Shizun Ge Date: Fri, 30 Jun 2023 21:53:07 -0700 Subject: [PATCH] [workflow] clean-ghcr goes to its own job --- .github/workflows/on-push-main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on-push-main.yml b/.github/workflows/on-push-main.yml index c8551d5..9714e33 100644 --- a/.github/workflows/on-push-main.yml +++ b/.github/workflows/on-push-main.yml @@ -53,10 +53,14 @@ jobs: ghcr.io/${{ github.repository }}:${{ steps.git.outputs.image_tag }} ghcr.io/${{ github.repository }}:development + 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: gantry + image-names: endlessh-go cut-off: One day ago UTC account-type: personal token: ${{ secrets.TOKEN_DELETE_GHCR_IMAGES }}