Make way to push to the new secure registries
What does this MR do?
Add support to push images to the new secure registries when the required variables are set.
What are the relevant issue numbers?
- https://gitlab.com/gitlab-org/gitlab/-/issues/336372
- https://gitlab.com/gitlab-org/gitlab/-/issues/297525