Docker Community Forums

Share and learn in the Docker community.

Automated Build with SSH fails on Docker Cloud

build
automatedbuilds
docker
dockercloud

(Themojojojo) #1

Hi,
I am trying to setup an automated build on Docker cloud as described here: https://docs.docker.com/docker-cloud/builds/automated-build/#/build-repositories-with-linked-private-submodules

I am using BitBucket as the source repo and created a new public/private key pair. I added the public key to my BitBucket repo (under settings->deployment keys) and my private key as an environment variable (SSH_PRIVATE) to my build. However, the build fails saying Permission Denied (public key).

Also, when I try to verify my private key under environment variables, it disappears each time I leave the page and comeback despite getting a confirmation/success message when I save.

Not sure what is going on? Any help would be greatly appreciated.