Registry push failing with certificate verify failed

I used bazel/rules_docker to push docker images to registry.gitlab.com. I have done this both locally and via CI setup in gitlab. The last successful run was around 17 hours back.

Since midnight, the bazel push has started failing with following error:
F0430 02:28:48.267087 15347 fast_pusher_.py:194] Error publishing registry.gitlab.com/…: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)

This is happening on a previously successful build as well. So it does not seem to be related to my code. It is happening both locally & via CI. So it does not seem to be environment specific.
I am able to do docker pull via docker command without any issues.

Any pointers to what might be wrong?

I’m hitting the same issue, but It’s the first time I try to do a container push using Bazel. Good to know that at least it used to work, and it could work again.

There is a github issue about this: https://github.com/bazelbuild/rules_docker/issues/820