cr_build_yaml_artifact {googleCloudRunner}R Documentation

Add an artifact for cloudbuild.yaml

Description

Add artifact objects to a build

Usage

cr_build_yaml_artifact(paths, bucket_dir = NULL, bucket = cr_bucket_get())

Arguments

paths

Which files from the working directory to upload to cloud storage once the build is finished. Can use globs but see details of cr_build_artifacts on how that affects downloads

bucket_dir

The directory in the bucket the files will be uploaded to

bucket

the bucket to send to

See Also

Other Cloud Build functions: Build(), RepoSource(), Source(), 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_secrets(), cr_build_yaml(), cr_build()

Examples

## Not run: 
cr_project_set("my-project")
r <- "write.csv(mtcars,file = 'artifact.csv')"
cr_build_yaml(
  steps = cr_buildstep_r(r),
  artifacts = cr_build_yaml_artifact("artifact.csv", bucket = "my-bucket")
)

## End(Not run)

[Package googleCloudRunner version 0.5.0 Index]