It is suggested to use cr_build_source instead to build sources
Source(storageSource = NULL, repoSource = NULL)
If provided via StorageSource, get the source from this location in Google Cloud Storage
If provided via RepoSource, get the source from this location in a Cloud Source
Source object
Location of the source in a supported storage service.
Other Cloud Build functions:
Build()
,
RepoSource()
,
StorageSource()
,
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()
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)
}