From 3726c00aa1eb817654f49450c65a0ce4b745bf51 Mon Sep 17 00:00:00 2001 From: "Matthew R. Kasun" Date: Mon, 28 Feb 2022 16:47:23 -0500 Subject: [PATCH] new workflow to purge GHCR --- .github/workflows/purgeGHCR.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/purgeGHCR.yml diff --git a/.github/workflows/purgeGHCR.yml b/.github/workflows/purgeGHCR.yml new file mode 100644 index 00000000..cfed01b0 --- /dev/null +++ b/.github/workflows/purgeGHCR.yml @@ -0,0 +1,27 @@ +Name: Purge untagged images from GHCR + +on: + workflow_dispatch + +jobs: + purge: + runs-on: ubuntu-latest + steps: + - name: Checkout + user: actions/checkout@v2 + - name: Prune Netmaker + uses: vlaurin/action-ghcr-prune@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + organization: gravitl + container: netmaker + dry-run: true # Dry-run first, then change to `false` + untagged: true + - name: Prune Netclient + uses: vlaurin/action-ghcr-prune@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + organization: gravitl + container: netclient + dry-run: true # Dry-run first, then change to `false` + untagged: true \ No newline at end of file