google-cloud-source-repos

Clone Google Source Repository without gcloud

可紊 提交于 2021-02-07 08:12:53
问题 I am currently cloning the git repository present in Google Cloud Source repository using gcloud source repos clone sample_repo --project=sample_project Can I clone git repository present in Google Cloud Source Repository without using gcloud? Like, git clone https://source.developers.google.com/p/sample_project/r/sample_repo 回答1: gcloud does not do much when cloning, it only sets up credentials. In fact if you run $ gcloud source repos clone default --dry-run command (with --dry-run flag)

Get Permission denied (publickey) for Git push to Google Cloud Source Repository with Google Cloud SDK authentication method on Windows 10

余生长醉 提交于 2021-02-07 05:16:06
问题 I'm trying to use Google Cloud Source Repository as a remote repository. I followed all the procedures to authenticate with the Google Cloud SDK authentication method that allows me to not use SSH keys (as they say). The problem is: I always get Permission denied (publickey) fatal: Could not read from remote repository. message when I try git push --all google . The gcloud command is in my Windows PATH ( C:\Users\xxxxx\AppData\Local\Google\Cloud SDK\ ;) and my user has enough permission as I

Get Permission denied (publickey) for Git push to Google Cloud Source Repository with Google Cloud SDK authentication method on Windows 10

孤街浪徒 提交于 2021-02-07 05:13:16
问题 I'm trying to use Google Cloud Source Repository as a remote repository. I followed all the procedures to authenticate with the Google Cloud SDK authentication method that allows me to not use SSH keys (as they say). The problem is: I always get Permission denied (publickey) fatal: Could not read from remote repository. message when I try git push --all google . The gcloud command is in my Windows PATH ( C:\Users\xxxxx\AppData\Local\Google\Cloud SDK\ ;) and my user has enough permission as I

Get Permission denied (publickey) for Git push to Google Cloud Source Repository with Google Cloud SDK authentication method on Windows 10

天大地大妈咪最大 提交于 2021-02-07 05:12:32
问题 I'm trying to use Google Cloud Source Repository as a remote repository. I followed all the procedures to authenticate with the Google Cloud SDK authentication method that allows me to not use SSH keys (as they say). The problem is: I always get Permission denied (publickey) fatal: Could not read from remote repository. message when I try git push --all google . The gcloud command is in my Windows PATH ( C:\Users\xxxxx\AppData\Local\Google\Cloud SDK\ ;) and my user has enough permission as I

Google Cloud Functions - How to securely store service account private key when using Google Source Repository?

老子叫甜甜 提交于 2020-07-14 22:31:56
问题 I use Google Source Repository to store my Google Cloud Functions. (Git repo hosted by Google, basically) One of my function needs to access a private Google Sheet file, I therefore created a Service Account. (With way too many rights since it's so hard to understand what exact rights we should give to a service account, and so hard to update later on, but I digress) Now, it's clearly not recommended to store the Service Account JSON file in the git repository itself for obvious reasons. Here

Google Cloud Functions - How to securely store service account private key when using Google Source Repository?

那年仲夏 提交于 2020-07-14 22:29:39
问题 I use Google Source Repository to store my Google Cloud Functions. (Git repo hosted by Google, basically) One of my function needs to access a private Google Sheet file, I therefore created a Service Account. (With way too many rights since it's so hard to understand what exact rights we should give to a service account, and so hard to update later on, but I digress) Now, it's clearly not recommended to store the Service Account JSON file in the git repository itself for obvious reasons. Here

How to do code review for google cloud git repo

拟墨画扇 提交于 2020-05-25 09:45:19
问题 We are hosting git repo on the google cloud platform. I know for github.com, we can use pull requests for code reviews, but google cloud does not seem to provide that. How do I perform code review for repos on google cloud platform? 回答1: One possibility (not ideal, I know, but still something) would be to have your cloud repo connected to a GitHub or BitBucket repo which you could use for code reviews instead. From Connecting a Hosted Repository: You can connect a Cloud Source Repository to a

How can I deploy direct from Google Cloud Source Repository to Google App Engine?

前提是你 提交于 2020-01-10 05:38:45
问题 Google offers git -> App Engine and git <-> Source Repository , so presumably somewhere it offers Source Repository -> App Engine . But I can't find where... even after twice reading all the Source Repository and App Engine docs I can find, inc. https://cloud.google.com/source-repositories/docs/ . I'd guess the procedure could be How to manually deploy direct from Bitbucket to Google App Engine? modified to access the SR files. But I can find the SR files in the GCS VM. Deleting all the $HOME

Problems connecting to BitBucket with Cloud Build and Source Repositories

*爱你&永不变心* 提交于 2019-12-11 04:45:48
问题 I'm GCP project owner and trying to connect a BitBucket repo as mirror in Cloud Source Repos . Also have a Cloud Build trigger based on a BitBucket repo. In Cloud Source Repositories , after granting access to my account, while configuring a mirror, no repositories from BitBucket appear and the following is displayed: The Bitbucket account [username] doesn't have access to any Bitbucket repositories. You will need to grant this account permission to repositories in Bitbucket before you can

How do I deploy to GAE from the Google Cloud Source Repository?

谁说我不能喝 提交于 2019-12-11 02:38:10
问题 I'm considering moving my php Google App Engine project from Codenvy to the Google Source Repository and edit it there with the Source Editor, but I don't see how to cause it to deploy my project. How do I do that? 回答1: Here's what works for me, found through guesswork, trial, error, Billy and only a little docs. I had set up GC Repositories to have a repository which is a mirror to bitbucket , auto-named default . Note: gcloud for default below can fail to recognise a repository that got