Gcloud Registry and Bitbucket

2.0

#1

If i use
version: 2
executorType: docker
containerInfo:

  • 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 (104.192.143.1)’ 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?


#2

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


#3

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


#4

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.


#5