Skip to content

Commit 44d4cb2

Browse files
committed
reduce TTL to 7 days
1 parent 6c15720 commit 44d4cb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
PHP_VERSION=${{ inputs.version }}
9595
builder: ${{ steps.buildx.outputs.name }}
9696
platforms: linux/amd64,linux/arm64
97-
cache-to: type=gha,mode=max,scope=${{ github.event.repository.name }}-${{ inputs.variant }}-${{ inputs.version }}-${{ github.ref_name }}-${{ steps.compute_hash.outputs.scope_hash }}
97+
cache-to: type=gha,scope=${{ github.event.repository.name }}-${{ inputs.variant }}-${{ inputs.version }}-${{ github.ref_name }}-${{ steps.compute_hash.outputs.scope_hash }}
9898
provenance: true
9999
sbom: true
100100
push: true
@@ -128,7 +128,7 @@ jobs:
128128
const scopePrefix = `${repo}-${variant}-${version}-${refName}-`;
129129
130130
// TTL threshold: 14 days (delete same-hash caches if age >= this)
131-
const DAYS = 14;
131+
const DAYS = 7;
132132
const AGE_MS = DAYS * 24 * 60 * 60 * 1000;
133133
const now = Date.now();
134134

0 commit comments

Comments
 (0)