fix(doc): Explain how image deletion actually works (#5124)

* Explain how image deletion actually works

* Be clearer about exactly what happens
This commit is contained in:
teor 2022-09-13 17:24:25 +10:00 committed by GitHub
parent 2cbc85ce1e
commit 113ff04dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -73,13 +73,16 @@ jobs:
# Deletes cache images older than $DELETE_AGE_DAYS days.
#
# Keeps the latest $KEEP_LATEST_IMAGE_COUNT images of each type:
# Keeps all images younger than $DELETE_AGE_DAYS.
# Also keeps $KEEP_LATEST_IMAGE_COUNT older images of each type:
# - zebrad checkpoint cache
# - zebrad tip cache
# - lightwalletd + zebrad tip cache
#
# TODO: when we add testnet to the workflows, keep the latest $KEEP_LATEST_IMAGE_COUNT testnet images,
# and the latest $KEEP_LATEST_IMAGE_COUNT mainnet images.
# TODO:
# - keep the latest $KEEP_LATEST_IMAGE_COUNT, if there are at least that many recent images, delete all the outdated images
# - when we add testnet to the workflows, keep the latest $KEEP_LATEST_IMAGE_COUNT testnet images,
# and the latest $KEEP_LATEST_IMAGE_COUNT mainnet images.
- name: Delete old cache disks
run: |
DELETE_BEFORE_DATE=$(date --date="$DELETE_AGE_DAYS days ago" '+%Y%m%d')