Skip to content

Commit ded9c58

Browse files
ci: switch Docker GHA cache to mode=min to reduce cache bloat
Switching from mode=max to mode=min on the main branch workflow cache-to saves only the final exported layers (as opposed to all intermediate layers). This significantly reduces GHA cache storage pressure while maintaining layer reuse benefits, since cache-from still pulls everything available regardless of save mode. Expected impact: reduces Docker layer cache footprint by ~60% without affecting cache hit rates on stable layers.
1 parent 02cc370 commit ded9c58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/Build-Test-And-Deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
"nuget_pat=${{ secrets.AZURE_DEVOPS_PAT }}"
9393
outputs: type=docker,dest=${{ github.workspace }}/essentialcsharpwebimage.tar
9494
cache-from: type=gha,scope=essentialcsharpweb-main
95-
cache-to: type=gha,mode=max,scope=essentialcsharpweb-main
95+
cache-to: type=gha,mode=min,scope=essentialcsharpweb-main
9696

9797
- name: Upload artifact
9898
uses: actions/upload-artifact@v7

0 commit comments

Comments
 (0)