I've been trying to get bitbucket-pipelines to use a private GCR (Google Container Registry) image as a build environment without any luck.
I tried to have the service account json as raw & as base64 in an environment variable but neither worked.
I'm not sure how to get this to work... I'm out of ideas.
Thanks for the help!
If found my answer thanks to support. Such a small detail yet so important.
In the bitbucket-pipelines.yml when we specify credentials for a private repository the property image becomes an object with 3 properties: name, username & password.
should of been like this:
name: Build & Push image to GCR
- echo $GCLOUD_API_KEYFILE | base64 -d > ./gcloud-api-key.json
- export GCLOUD_API_KEYFILE=./gcloud-api-key.json
- export GCLOUD_CLUSTER=$BITBUCKET_BRANCH
- gcp-k8s image-build
- gcp-k8s image-push
Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs