All the examples that I've come across have been of the following format:
gcloud container builds submit --config cloudbuild.yaml .
The man-page says the following:
[SOURCE]
The source directory on local disk or tarball in Google Cloud Storage
or disk to use for this build. If source is a local directory this
command skips files specified in the .gcloudignore file (see $ gcloud
topic gcloudignore for more information).
Now, the source-directory on my local disk is very large and a lot of time is being spent in transferring the source code from my local machine to the Google build servers/cloud. Is either of the following possible? How?
- Give a git/github URL instead of local source-directory
- My git-repo is incidentally being mirrored in Google Source Repository as well, because I have setup build triggers for my repo. Can I give a URL to the repo being mirrored by Google?