Build a source object

cr_build_source(x)

# S3 method for gar_RepoSource
cr_build_source(x)

# S3 method for gar_StorageSource
cr_build_source(x)

Arguments

x

A RepoSource or a StorageSource object

Examples

repo <- RepoSource("my_repo", branchName = "master") gcs <- StorageSource("my_code.tar.gz","gs://my-bucket") cr_build_source(repo)
#> ==CloudBuildSource== #> ==CloudBuildRepoSource== #> repoName: my_repo #> branchName: master
cr_build_source(gcs)
#> ==CloudBuildSource== #> ==CloudBuildStorageSource== #> bucket: gs://my-bucket #> object: my_code.tar.gz
my_gcs_source <- cr_build_source(gcs) my_repo_source <- cr_build_source(repo) if (FALSE) { build1 <- cr_build("cloudbuild.yaml", source = my_gcs_source) build2 <- cr_build("cloudbuild.yaml", source = my_repo_source) }