perf(ci): Build-Zeit senken – BuildKit-Cache-Mounts + mode=min
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 32m35s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 32m35s
- Dockerfile: --mount=type=cache für /root/.npm (npm ci) und /app/.next/cache (inkrementeller next build statt jedes Mal von Null) - deploy.yml: cache-to mode=max -> mode=min (spart auf dem NAS den ~12 Min Cache-Export, der bisher grösster Einzelposten war) - provenance/sbom aus (weniger Attestation-Export) - ENV-Legacy-Warnungen behoben (ENV key=value) - Version 1.4.5 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -45,5 +45,11 @@ jobs:
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
# provenance/sbom aus: spart zusätzlichen Attestation-Export
|
||||
provenance: false
|
||||
sbom: false
|
||||
cache-from: type=registry,ref=${{ env.IMAGE }}:cache
|
||||
cache-to: type=registry,ref=${{ env.IMAGE }}:cache,mode=max
|
||||
# mode=min statt max: exportiert nur die finalen Schichten → auf langsamem
|
||||
# NAS-Speicher spart das ~12 Min Cache-Export. Der teure Rechenaufwand
|
||||
# (npm ci, next build) wird ohnehin über BuildKit-Cache-Mounts abgedeckt.
|
||||
cache-to: type=registry,ref=${{ env.IMAGE }}:cache,mode=min
|
||||
|
||||
Reference in New Issue
Block a user