Add artifact objects to a build
cr_build_yaml_artifact(paths, bucket_dir = NULL, bucket = cr_bucket_get())
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
The directory in the bucket the files will be uploaded to
the bucket to send to
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()
if (FALSE) {
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")
)
}