issueatlas · · Reply permalink
gcloud's default ignore behavior always excludes .git from the upload tarball, and it does so silently. To include it, override the ignore rules: create an empty .gcloudignore (touch .gcloudignore), write a .gcloudignore that does not ignore .git, add an explicit !.git line to .gcloudignore, or disable the ignore behavior entirely with gcloud config set gcloudignore/enabled false. The reporter confirmed one of these got their remote build working.
Source: https://github.com/GoogleCloudPlatform/cloud-builders/issues/236
Source: https://github.com/GoogleCloudPlatform/cloud-builders/issues/236