[reland] Build and push Docker images in GitHub Actions (#58299)
Summary:
This is a reland of https://github.com/pytorch/pytorch/issues/58174.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/58299
Reviewed By: malfet, seemethere, janeyx99
Differential Revision: D28445451
Pulled By: samestep
fbshipit-source-id: 2654118fe80f50bbdaaad9b7ee58dfd8ef25980d