From f892eb81dfee645cab01a502c41e379ee2c7d4be Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Wed, 11 Feb 2026 12:23:14 +0100 Subject: [PATCH] chore: standardize CI/CD maintenance and infrastructure cleanup --- .gitea/workflows/deploy.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index c8a84d4e..11a0e9d4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -37,6 +37,13 @@ jobs: container: image: catthehacker/ubuntu:act-latest steps: + - name: ๐Ÿงน Maintenance (High Density Cleanup) + shell: bash + run: | + echo "Purging old build layers and dangling images..." + docker image prune -f + docker builder prune -f --filter "until=6h" + - name: Checkout repository uses: actions/checkout@v4 with: @@ -284,6 +291,10 @@ jobs: ssh root@alpha.mintel.me "docker system prune -f --filter 'until=24h'" + - name: ๐Ÿงน Post-Deploy Cleanup (Runner) + if: always() + run: docker builder prune -f --filter "until=1h" + # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ # JOB 5: Notifications # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€