From 35be9e9d87a58198aaaa92962a26e9a5ad2a9ee1 Mon Sep 17 00:00:00 2001 From: Michel NAUD Date: Thu, 12 Mar 2026 20:28:25 +0100 Subject: [PATCH 1/2] cleanup old docker images on registry --- .github/workflows/cleanup-ghcr.yml | 25 +++++++++++++++++++++++++ CHANGELOG.md | 1 + 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/cleanup-ghcr.yml diff --git a/.github/workflows/cleanup-ghcr.yml b/.github/workflows/cleanup-ghcr.yml new file mode 100644 index 0000000..a9ae103 --- /dev/null +++ b/.github/workflows/cleanup-ghcr.yml @@ -0,0 +1,25 @@ +name: Cleanup untagged Docker images + +on: + schedule: + - cron: '0 3 * * 0' # Sunday 03:00 UTC + workflow_dispatch: + +jobs: + cleanup: + runs-on: ubuntu-latest + permissions: + packages: delete + strategy: + matrix: + package: + - website-2026-backend + - website-2026-frontend + steps: + - name: Delete untagged versions + uses: actions/delete-package-versions@v5 + with: + package-name: ${{ matrix.package }} + package-type: container + delete-only-untagged-versions: true + min-versions-to-keep: 5 diff --git a/CHANGELOG.md b/CHANGELOG.md index fadc91c..5cdd537 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 2.1.1 - FIXED system - HTML and JS frontend caches causing failures +- FIXED system - cleanup old docker images on registry ## 2.1.0 From ffcc3f9720a427eec3260cf7e573cec2deec7187 Mon Sep 17 00:00:00 2001 From: Michel NAUD Date: Thu, 12 Mar 2026 20:30:01 +0100 Subject: [PATCH 2/2] fix right --- .github/workflows/cleanup-ghcr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cleanup-ghcr.yml b/.github/workflows/cleanup-ghcr.yml index a9ae103..b64b157 100644 --- a/.github/workflows/cleanup-ghcr.yml +++ b/.github/workflows/cleanup-ghcr.yml @@ -9,7 +9,7 @@ jobs: cleanup: runs-on: ubuntu-latest permissions: - packages: delete + packages: write strategy: matrix: package: