diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index dcdeb98..f1d1d72 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -25,7 +25,9 @@ jobs: echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc echo "//${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}/:_authToken=${{ secrets.REGISTRY_PASS }}" >> .npmrc - name: Install dependencies - run: pnpm install --frozen-lockfile + run: | + rm -rf .next .turbo node_modules || true + pnpm install --frozen-lockfile - name: ๐Ÿงช Parallel Checks run: | pnpm lint & diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 457ddd6..dc88ba4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,4 +1,4 @@ -# Infrastructure Maintenance: Production stabilization and email adapter fix triggered on 2026-04-12. +# Infrastructure Maintenance: Production stabilization and runner cleanup triggered on 2026-04-23. name: ๐Ÿš€ Build & Deploy on: @@ -140,6 +140,12 @@ jobs: container: image: catthehacker/ubuntu:act-latest steps: + - name: ๐Ÿงน Clean Runner Infrastructure + run: | + docker builder prune -f --filter "until=24h" + docker image prune -f --filter "until=24h" + docker system prune -f --volumes --filter "until=24h" || true + - name: Checkout repository uses: actions/checkout@v4 - name: Setup Node.js @@ -156,6 +162,7 @@ jobs: echo "//${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}/:_authToken=${{ secrets.REGISTRY_PASS }}" >> .npmrc - name: Install dependencies run: | + rm -rf .next .turbo node_modules || true pnpm store prune pnpm install --no-frozen-lockfile - name: ๐Ÿงช QA Checks @@ -186,7 +193,10 @@ jobs: - name: ๐Ÿณ Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: ๐Ÿงน Pre-Build Cache Cleanup - run: docker builder prune -f --filter "until=24h" + run: | + docker builder prune -a -f --filter "until=12h" + docker image prune -a -f --filter "until=12h" + docker system prune -f --volumes || true - name: ๐Ÿ” Registry Login run: echo "${{ secrets.REGISTRY_PASS }}" | docker login registry.infra.mintel.me -u "${{ secrets.REGISTRY_USER }}" --password-stdin - name: ๐Ÿ—๏ธ Build and Push