Try to authenticate with gcloud SDK

I want to be able to have access to my gcloud console through droneio. but im stuck at authentication and managing secrets.

I want to set a secret into a json and then authenticate that json.

and this is what I have so far

  gcloud:
    image: google/cloud-sdk
    environment:
      - 'GOOGLE_TOKEN=${GOOGLE_TOKEN}'

    commands:
      - echo ${GOOGLE_TOKEN} > /tmp/credentials.json
      - gcloud auth activate-service-account --key-file /tmp/credentials.json
      - gcloud config set project joule-eed41
    secrets: [google_token]

and this comes out

+ echo  > /tmp/credentials.json
+ gcloud auth activate-service-account --key-file /tmp/credentials.json
ERROR: (gcloud.auth.activate-service-account) Could not read json file /tmp/credentials.json: No JSON object could be decoded```

This is not valid syntax for providing secrets to your pipeline steps. Please see the following documents which provide more detailed information and troubleshooting steps:

Thank you @bradrydzewski, all i had to do was delete the environmental section.

Btw Huge fan of Drone.io, hope more people come on to the community.