From 3f122308fcaa8594e7d3ff389a3ec181a6e4fe06 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Thu, 21 Sep 2023 01:13:11 +0100 Subject: [PATCH 1/3] Add action to clean up untagged (non-multiarch) images from GHCR Signed-off-by: Adam Warner --- .github/workflows/housekeeping.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/housekeeping.yml diff --git a/.github/workflows/housekeeping.yml b/.github/workflows/housekeeping.yml new file mode 100644 index 000000000..bb6cf5864 --- /dev/null +++ b/.github/workflows/housekeeping.yml @@ -0,0 +1,28 @@ +name: housekeeping +on: + workflow_dispatch: + +jobs: + housekeeping: + runs-on: ubuntu-latest + steps: + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to GitHub Container Registry with PAT_TOKEN + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.PAT_TOKEN }} + - + name: Delete all containers from repository without tags + uses: Chizkiyahu/delete-untagged-ghcr-action@v2 + with: + token: ${{ secrets.PAT_TOKEN }} + repository_owner: ${{ github.repository_owner }} + repository: ${{ github.repository }} + untagged_only: true + owner_type: org # or user + except_untagged_multiplatform: true \ No newline at end of file From 89518081b36e0ad493cf893b0290e8249f9d3937 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Fri, 6 Oct 2023 13:25:26 +0100 Subject: [PATCH 2/3] Update test-and-build-v6.yml Signed-off-by: Adam Warner --- .github/workflows/test-and-build-v6.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-and-build-v6.yml b/.github/workflows/test-and-build-v6.yml index 671f2e8d5..c8ce525d7 100644 --- a/.github/workflows/test-and-build-v6.yml +++ b/.github/workflows/test-and-build-v6.yml @@ -1,5 +1,6 @@ name: Build and Publish (development-v6-nightly) on: + workflow_dispatch: schedule: - cron: "0 5 * * *" push: From 832e3e5f60d105125c16f60822bb84348b7970d0 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sun, 8 Oct 2023 13:09:10 +0100 Subject: [PATCH 3/3] Update test-and-build-v6.yml Signed-off-by: Adam Warner --- .github/workflows/test-and-build-v6.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-and-build-v6.yml b/.github/workflows/test-and-build-v6.yml index c8ce525d7..47c3c97fb 100644 --- a/.github/workflows/test-and-build-v6.yml +++ b/.github/workflows/test-and-build-v6.yml @@ -7,6 +7,8 @@ on: branches: - development-v6 pull_request: + branches: + - development-v6 env: dockerhub: ${{ secrets.DOCKERHUB_NAMESPACE }}/pihole