[solved] How to use a private registry from GCR

Hi,
I have been using drone (v5.0) for a while now and it is a great experience.
My final step is to use my private image for testing in the pipeline.
I simply cannot figure out how to authenticate on GCR with token.

I tried using using
token: > "$$GOOGLE_KEY"
with the _json key on the secret and it didn’t worked.

Did someone find a workaround for this ?
Any help would be much appreciated

Thanks,
Genti.

Got it,
this is my workaround:

pipeline:
  test:
    image: b.gcr.io/my-custom-privateimage:v2.0
    auth_config:
      username: _json_key
      password: ${GOOGLE_KEY}
      email: ${GOOGLE_GCR_EMAIL}
    commands:
      - echo Building Started`
      - ....

and this is working.