Open jamesward opened 4 years ago
AFAIK setting up Cloud Build sounds really hard, if possible at all.
Cloud Build does not expose an API to authenticate to GitHub. Their experience is purely UI based.
There are no secrets in OiCS shell. To clone a private repo from GitHub on OiCS shell, you'd need to create a ssh key/copy it --> add it to github --> then clone.
Is the "git clone" issue you reported above related to GCB? If not let's open a new issue. We don't use git:// to clone as it would always prompt for auth even for public repos.
Yeah, you are right that cloning over SSH isn't something we want to support. So we should fix that test and then don't actually need to do any secrets for CI on Cloud Build.
I'd be nice to run CI as part of the Cloud Build process.
I'm running
go test
and getting:This is because I don't have an SSH key setup. It might be acceptable to instead use
git://github.com/google/new-project.git
but then we wouldn't be testing SSH cloning. To automate testing of SSH cloning we'd need to have a test account with an SSH key and have that key setup on the CI machine.