Source {googleCloudRunner}R Documentation

Source Object

Description

It is suggested to use cr_build_source instead to build sources

Usage

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

Details

Location of the source in a supported storage service.

Value

Source object

See Also

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()

Examples


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)

[Package googleCloudRunner version 0.5.0 Index]