View source: R/build_sources.R
Source | R Documentation |
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 |
Location of the source in a supported storage service.
Source object
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") cr_bucket_set("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" )) ## Not run: build1 <- cr_build("cloudbuild.yaml", source = my_gcs_source) build2 <- cr_build("cloudbuild.yaml", source = my_repo_source) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.