I'm creating a Cloud Build job from a local directory. GCP Cloud Build expects the source code to be provided as a .tar.gz in a Bucket. There doesn't seem to be an obvious way to easily upload a directory as a .tar.gz file (just using
FileAsset
uploads it as a zip file, apparently and
FileArchive
provides no mechanism for specifying the kind of archive to produce).