StorageSource Object

StorageSource(object, bucket = NULL, generation = NULL)

Arguments

object

Google Cloud Storage object containing the source. This object must be a gzipped archive file (.tar.gz) containing source to build.

bucket

Google Cloud Storage bucket containing the source

generation

Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

Value

StorageSource object

Details

Location of the source in an archive file in Google Cloud Storage.

Examples

if (FALSE) {
cr_project_set("my-project")
cr_bucket_set("my-bucket")
# construct Source object
my_gcs_source <- Source(storageSource = StorageSource(
  "my_code.tar.gz",
  "gs://my-bucket"
))
build1 <- cr_build("cloudbuild.yaml", source = my_gcs_source)

# helper that tars and adds to Source() for you
my_gcs_source2 <- cr_build_upload_gcs("my_folder")
build2 <- cr_build("cloudbuild.yaml", source = my_gcs_source2)
}