[ROCm][GHA] keep docker images for at most 1 day
Fixes #76413. ROCm runners take longer to pull docker images than other runners. Try to cache images for at most 1 day to improve workflow throughput.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/76415
Approved by: https://github.com/janeyx99, https://github.com/clee2000, https://github.com/seemethere