It is suggested to use cr_build_source instead to build sources

Source(storageSource = NULL, repoSource = NULL)

Arguments

storageSource

If provided via StorageSource, get the source from this location in Google Cloud Storage

repoSource

If provided via RepoSource, get the source from this location in a Cloud Source

Value

Source object

Details

Location of the source in a supported storage service.

Examples


cr_project_set("my-project")
#>  2022-03-26 19:55:42 > ProjectId set to my-project
#> [1] "my-project"
cr_bucket_set("my-bucket")
#>  2022-03-26 19:55:42 > Bucket set to my-bucket
#> [1] "my-bucket"
my_gcs_source <- Source(storageSource = StorageSource(
  "my_code.tar.gz",
  "gs://my-bucket"
))
my_repo_source <- Source(repoSource = RepoSource("https://my-repo.com",
  branchName = "master"
))
if (FALSE) {

build1 <- cr_build("cloudbuild.yaml", source = my_gcs_source)
build2 <- cr_build("cloudbuild.yaml", source = my_repo_source)
}