[CI] Push `latest` and hash+CUDAver tags (#88971)
For nightly docker build to simulate the behavior of `push_nightly_docker_ghcr.yml`
Tested in https://github.com/pytorch/pytorch/actions/runs/3465221336/jobs/5787694933
Fixes https://github.com/pytorch/pytorch/issues/88833
Pull Request resolved: https://github.com/pytorch/pytorch/pull/88971
Approved by: https://github.com/seemethere