We currently host our Ruby on Rails site on Google Container Engine. I am in the process of migrating our deploy from a 3rd party CI to the new Google Container Builder. The only thing blocking me is installing our gems from private Github repos. I have already created an SSH key stored in cloud storage that I load with the gsutil
command. I have ensured the key is there and with correct file permissions (using a simple busybox ls
build step) but am at a loss how to get Bundler/git to use this later on. I've tried a few solutions using environment variables from this answer (e.g. GIT_SSH_COMMAND
) without success.
I have this working on our current CI by adding the SSH key and using ssh-add
so git
can find it later. However the base Google image doesn't seem to be using ssh-agent.
Any suggestions (or hacks :) to get around this?