Learn R Programming

googleCloudRunner (version 0.5.0)

StorageSource: StorageSource Object

Description

StorageSource Object

Usage

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.

See Also

Other Cloud Build functions: Build(), RepoSource(), Source(), cr_build_artifacts(), cr_build_list(), cr_build_logs(), cr_build_make(), cr_build_status(), cr_build_targets(), cr_build_upload_gcs(), cr_build_wait(), cr_build_write(), cr_build_yaml_artifact(), cr_build_yaml_secrets(), cr_build_yaml(), cr_build()

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab