From f4fdb89ba405c9fe78ef646985b0803538ea807f Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 23 Feb 2026 02:39:11 +0100 Subject: [PATCH] fix(ci): Re-enable QA for tags and use global Turborepo cache key to allow hits across branches/tags --- .gitea/workflows/ci.yml | 4 ++-- .gitea/workflows/deploy.yml | 4 ++-- Dockerfile | 7 ++----- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index afd56c2d..7e8b5981 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -50,9 +50,9 @@ jobs: uses: actions/cache@v4 with: path: .turbo - key: ${{ runner.os }}-turbo-${{ github.ref_name }}-${{ github.sha }} + key: ${{ runner.os }}-turbo-global-${{ github.sha }} restore-keys: | - ${{ runner.os }}-turbo-${{ github.ref_name }}- + ${{ runner.os }}-turbo-global- ${{ runner.os }}-turbo- - name: ๐Ÿงช QA Checks diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1ae6d3f7..e75e3c1f 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -175,9 +175,9 @@ jobs: uses: actions/cache@v4 with: path: .turbo - key: ${{ runner.os }}-turbo-${{ github.ref_name }}-${{ github.sha }} + key: ${{ runner.os }}-turbo-global-${{ github.sha }} restore-keys: | - ${{ runner.os }}-turbo-${{ github.ref_name }}- + ${{ runner.os }}-turbo-global- ${{ runner.os }}-turbo- - name: ๐Ÿ”’ Security Audit diff --git a/Dockerfile b/Dockerfile index fd66d89b..f0363222 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,10 +41,7 @@ CMD ["pnpm", "dev:local"] # Build application # Stage 3: Builder (Production) FROM base AS builder -RUN --mount=type=cache,target=/app/.next/cache,id=nextjs-cache \ - pnpm build && \ - mkdir -p /app/.next-cache-tmp && \ - cp -r /app/.next/cache/* /app/.next-cache-tmp/ || true +RUN pnpm build # Stage 3: Runner FROM registry.infra.mintel.me/mintel/runtime:v1.7.10 AS runner @@ -63,6 +60,6 @@ ENV NODE_ENV=production COPY --from=builder --chown=nextjs:nodejs /app/public ./public COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static -COPY --from=builder --chown=nextjs:nodejs /app/.next-cache-tmp ./.next/cache +COPY --from=builder --chown=nextjs:nodejs /app/.next/cache ./.next/cache CMD ["node", "server.js"]