| 1 | { |
| 2 | "_comment": "DigitalOcean Spaces lifecycle for the primary shithub object bucket. Apply with `s3cmd setlifecycle actions-lifecycle.json s3://<object-bucket>`. Actions logs and artifacts live under actions/runs/; DB metadata retention is handled by workflow:cleanup.", |
| 3 | "Rules": [ |
| 4 | { |
| 5 | "ID": "actions-runs-90day-retention", |
| 6 | "Status": "Enabled", |
| 7 | "Filter": {"Prefix": "actions/runs/"}, |
| 8 | "Expiration": {"Days": 90} |
| 9 | }, |
| 10 | { |
| 11 | "ID": "actions-abort-stale-multipart", |
| 12 | "Status": "Enabled", |
| 13 | "Filter": {"Prefix": "actions/runs/"}, |
| 14 | "AbortIncompleteMultipartUpload": {"DaysAfterInitiation": 2} |
| 15 | } |
| 16 | ] |
| 17 | } |