Google Container Builder is unable to access private Github repositaries

4/19/2017

I have two private repositaries on Github, A and B. Both are Golang projects. Project A depends on repositary B. I have added both repositaries to Google Source Code.

Now in Container builder, when I try to build for project A, it is not able to access repositary B. In the build logs, I see:

Step #1: [0;33m[WARN]  [mUnable to checkout github.com/avi/api

Step #1: [0;31m[ERROR] [mUpdate failed for github.com/avi/api: Unable to get repository

How do I debug/fix this?

-- avi
google-container-registry
google-kubernetes-engine

2 Answers

5/28/2018

there is a solution now: Accessing Private GitHub Repositories

(sorry for the link-only answer, feel free to edit this or post a better answer using the link)

-- maxbellec
Source: StackOverflow

4/20/2017

Looks like it is not possible as of now:

We don’t have an integrated solution as of today, but we have seen one solution coming from users. The trick is to use a Deploy or User Key that you could store in GCS for example, and pull it as a previous build step.

github/cloud-builders

-- avi
Source: StackOverflow