ci: add aggressive runner cleanup steps to workflows
Some checks failed
🚀 Build & Deploy / 🔍 Prepare (push) Successful in 5s
🚀 Build & Deploy / 🧪 QA (push) Successful in 1m36s
🚀 Build & Deploy / 🏗️ Build (push) Successful in 13m32s
🚀 Build & Deploy / 🚀 Deploy (push) Successful in 12s
🚀 Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 3m55s
🚀 Build & Deploy / 🔔 Notify (push) Successful in 1s
Nightly QA / call-qa-workflow (push) Failing after 29s

This commit is contained in:
2026-04-24 01:14:34 +02:00
parent e8b8a4073e
commit 52f4f30336
2 changed files with 15 additions and 3 deletions

View File

@@ -25,7 +25,9 @@ jobs:
echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc 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 echo "//${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}/:_authToken=${{ secrets.REGISTRY_PASS }}" >> .npmrc
- name: Install dependencies - name: Install dependencies
run: pnpm install --frozen-lockfile run: |
rm -rf .next .turbo node_modules || true
pnpm install --frozen-lockfile
- name: 🧪 Parallel Checks - name: 🧪 Parallel Checks
run: | run: |
pnpm lint & pnpm lint &

View File

@@ -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 name: 🚀 Build & Deploy
on: on:
@@ -140,6 +140,12 @@ jobs:
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
steps: 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 - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Node.js - name: Setup Node.js
@@ -156,6 +162,7 @@ jobs:
echo "//${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}/:_authToken=${{ secrets.REGISTRY_PASS }}" >> .npmrc echo "//${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}/:_authToken=${{ secrets.REGISTRY_PASS }}" >> .npmrc
- name: Install dependencies - name: Install dependencies
run: | run: |
rm -rf .next .turbo node_modules || true
pnpm store prune pnpm store prune
pnpm install --no-frozen-lockfile pnpm install --no-frozen-lockfile
- name: 🧪 QA Checks - name: 🧪 QA Checks
@@ -186,7 +193,10 @@ jobs:
- name: 🐳 Set up Docker Buildx - name: 🐳 Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: 🧹 Pre-Build Cache Cleanup - 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 - name: 🔐 Registry Login
run: echo "${{ secrets.REGISTRY_PASS }}" | docker login registry.infra.mintel.me -u "${{ secrets.REGISTRY_USER }}" --password-stdin run: echo "${{ secrets.REGISTRY_PASS }}" | docker login registry.infra.mintel.me -u "${{ secrets.REGISTRY_USER }}" --password-stdin
- name: 🏗️ Build and Push - name: 🏗️ Build and Push