Error connecting to GCP

I’m getting the following error when authenticating to GCP:

#!/bin/bash -eo pipefail
echo ${GCLOUD_SERVICE_KEY} | gcloud auth activate-service-account --key-file=-
gcloud --quiet config set project ${GOOGLE_PROJECT_ID}
gcloud --quiet config set compute/zone ${GOOGLE_COMPUTE_ZONE}
gcloud --quiet auth configure-docker
ERROR: (gcloud.auth.activate-service-account) There was a problem refreshing your current auth tokens: invalid_grant: Invalid JWT Signature.

I followed the steps outlined in and still no luck.

I’ve tried using the env var in post raw JSON and base64, neither work.

Do I need to do something in order for my workflow to take the new env vars?

Hi there,

Welcome to our community.

If you try to SSH[1] into the build and echo out those variables yourself are they all set properly?


Figured it out earlier today.

I was modifying an existing workflow but it did not seem to change…
Just discovered “Contexts”, which was still out of date.

After updating there, everything works as expected.

I’m a front-end guy hanging in while our ops person is out :slight_smile:

1 Like

Awesome, glad you were able to get it figured out!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.