It is suggested to use cr_build_source instead to build sources
Source(storageSource = NULL, repoSource = NULL)
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 |
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_upload_gcs()
,
cr_build_wait()
,
cr_build_write()
,
cr_build_yaml_artifact()
,
cr_build_yaml_secrets()
,
cr_build_yaml()
,
cr_build()
#>#> [1] "my-project"#> ℹ 2021-03-19 12:27:00 > 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) }