I'm trying to clone a second repository with deployment config in my pipeline:
script:
- git clone git@bitbucket.org:<team>/<repo>.git /<repo>
I followed the steps listed here: https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html
This works fine when I use a Debian based image (google/cloud-sdk).
However, when I use an Alpine based image this fails. This is a private image based on devth/helm, I added ssh with:
RUN apk add --no-cache openssh-client
Error:
<span>Cloning into '/<repo>'...<br></span><span>Host key verification failed.<br></span><span>fatal: Could not read from remote repository.<br><br></span><span>Please make sure you have the correct access rights<br></span><span>and the repository exists.</span><span>+ git clone <a href="mailto:git@bitbucket.org" target="_blank" rel="nofollow noopener noreferrer">git@bitbucket.org</a>:<team>/<repo>.git /<repo><br></span>
Do I need extra steps to get this to work on Alpine?