Image is not getting pushed to ACR using acr drone plugin

Hi everyone ,
I have been trying to push image to ACR using the drone acr plugin but it’s not getting pushed even if I provide service principal id and secret. Attached the yaml code for reference .

name: default
  image: plugins/acr
  settings:
    service_principal_client_id: 
      from_secret: id
    service_principal_client_secret: 
      from_secret: secret
    repo: foo/bar
    tags:
      - ${DRONE_COMMIT_SHA:0:8}
    dockerfile: ./Dockerfile

Using the above drone plugin for pushing, but getting this issue
Get "https://azurecr.io/v2/": x509: certificate is valid for *.oneroute.microsoft.com, not azurecr.io
Any idea what could be wrong here?

hello @Jasdeep
have you seen this documentation?

Hey, thanks for the reply.
Is there any other way through which I can build and push images to ACR but using drone only.

Hey,
So I am referring this documentation https://plugins.drone.io/plugins/acr . Facing the same issue
*Get “https://azurecr.io/v2/”: x509: certificate is valid for .oneroute.microsoft.com, oneroute.microsoft.com, not azurecr.io