Gcloud Registry and Bitbucket



If i use
version: 2
executorType: docker

  • image: google/cloud-sdk

In step “Checkout code” i get stop with question:
git reset --hard $CIRCLE_SHA1
Cloning into ‘.’…
The authenticity of host ‘bitbucket.org (’ can’t be established.
RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40.
Are you sure you want to continue connecting (yes/no)?

How i can use gcloud for push images?


You need to append the host key to ~/.ssh/known_hosts


i can’t do this because step checkout is first step but i have success with other base image nitra/gcloud


You can put steps in before checkout. Previously, you had to specify a pwd: attribute to that command, since checkout would create your workDir and then clone into it. Our engineers recently changed the system to auto-create the workdir folder on the first command run.