google-cloud-source-repos

What causes Google gcloud error message “ERROR: (gcloud) Invalid choice: 'get'. Did you mean 'meta'?” mean?

匆匆过客 提交于 2019-12-10 19:56:52
问题 When I try to git push to Google cloud repository, I get the above message. It then asks me to enter my credentials. After that I get the following error: Valid choices are [auth, components, compute, config, container, deployment-manager, dns, docker, feedback, help, info, init, meta, preview, projects, source, sql, topic, version]. fatal: Authentication failed for 'https://source.developers.google.com/p/projectname/' Is there anything am missing? 回答1: As git config --list shows in your

Jenkins with Google Cloud Source Repository

时光怂恿深爱的人放手 提交于 2019-12-06 19:30:17
问题 I am trying to use Jenkins for CI/CD. I've developed a Python flask application. I am deploying this application into Google App Engine. So far I am using gcloud app deploy app.yaml command to deploy application to Google App Engine. Code for this application is present in Google Cloud Source Repository. Since the authentication to git(Google Cloud Source Repository) requires Google OAuth, I've installed Google OAuth Credentials Plugin Now I am facing two issues When I use "Google Service

Using Google Cloud Source Repositories with service account

烂漫一生 提交于 2019-12-06 01:49:25
问题 Is it possible to access a Google Cloud Source Repository in an automated way, i.e. from a GCE instance using a service account? The only authentication method I am seeing in the docs is to use the gcloud auth login command, which will authenticate my personal user to access the repo, not the machine I am running commands from. 回答1: On GCE vms running gcloud source repos clone default ~/my_repo should work automatically without extra step of authentication, as it will use VMs service account.

Jenkins with Google Cloud Source Repository

喜你入骨 提交于 2019-12-05 01:56:40
I am trying to use Jenkins for CI/CD. I've developed a Python flask application. I am deploying this application into Google App Engine. So far I am using gcloud app deploy app.yaml command to deploy application to Google App Engine. Code for this application is present in Google Cloud Source Repository. Since the authentication to git(Google Cloud Source Repository) requires Google OAuth, I've installed Google OAuth Credentials Plugin Now I am facing two issues When I use "Google Service Account from metadata" Credential Kind, I am not seeing the credentials listed in "Source Code Management"

Auto deploy Google Cloud Functions from Google Cloud Source Control

亡梦爱人 提交于 2019-11-30 16:14:37
问题 I can't figure out how to automatically deploy newly pushed commits of Cloud Functions either from Cloud Source Control or from GitHub directly. I have found a similar solution by creating another function and GitHub webhook, but since Functions can't SSH (and have SSH keys installed), it is only working with Public Repos. (https://cloud.google.com/community/tutorials/cloud-functions-github-auto-deployer) Any ideas how to achieve this? Thanks 回答1: You could use Google Cloud Builder to achieve

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

只愿长相守 提交于 2019-11-29 16:52:40
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 folders I do find ... have no effect on the files shown at Source: Baffled. The best way to do this