From 35739364649e3275b140418349cccd6220db03c2 Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 31 Jul 2024 09:01:28 +0200 Subject: [PATCH] chore: image cleanup (#149) --- .github/workflows/main-image-cleanup.yml | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main-image-cleanup.yml diff --git a/.github/workflows/main-image-cleanup.yml b/.github/workflows/main-image-cleanup.yml new file mode 100644 index 00000000..f31abadf --- /dev/null +++ b/.github/workflows/main-image-cleanup.yml @@ -0,0 +1,26 @@ +name: Main Image Cleanup + +on: + workflow_dispatch: {} + schedule: + - cron: '0 4 * * *' + +permissions: + packages: write + +jobs: + main-image: + runs-on: ubuntu-latest + steps: + - uses: actions/delete-package-versions@v5 + with: + package-name: 'das/playground-backend' + package-type: 'container' + min-versions-to-keep: 3 + delete-only-untagged-versions: 'true' + - uses: actions/delete-package-versions@v5 + with: + package-name: 'das/webapp' + package-type: 'container' + min-versions-to-keep: 3 + delete-only-untagged-versions: 'true'