Refactored when docker images get deleted to the end of the pipeline [ROCm/hip commit: a31cd5cf18]
a31cd5cf18