Skip to content

Commit 2fe6e12

Browse files
committed
Keep CI image snapshots for one day
A snapshot is only downloaded by consumer jobs of the run that uploaded it. Once it expires, a re-run restores the image stash instead, which keeps its two-day retention. One day halves the storage the snapshot adds on top of the stash.
1 parent 83a085d commit 2fe6e12

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/ci-image-build.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,5 +430,6 @@ jobs:
430430
path: "${{ runner.temp }}/ci-image-snapshot-*-${{ env.PYTHON_MAJOR_MINOR_VERSION }}.tar.zst*"
431431
if-no-files-found: 'error'
432432
compression-level: '0'
433-
retention-days: '2'
433+
# Read only within this run; once it expires, consumers fall back to the stash.
434+
retention-days: '1'
434435
if: steps.snapshot-export.outcome == 'success'

0 commit comments

Comments
 (0)