cr_build_make: Make a Cloud Build object out of a cloudbuild.yml file

View source: R/build_do.R

cr_build_makeR Documentation

Make a Cloud Build object out of a cloudbuild.yml file

Description

This creates a Build object via the standard cloudbuild.yaml format

Usage

cr_build_make(
  yaml,
  source = NULL,
  timeout = NULL,
  images = NULL,
  artifacts = NULL,
  options = NULL,
  substitutions = NULL,
  availableSecrets = NULL,
  serviceAccount = NULL,
  logsBucket = NULL
)

Arguments

yaml

A Yaml object created from cr_build_yaml or a file location of a .yaml/.yml cloud build file

source

A Source object specifying the location of the source files to build, usually created by cr_build_source

timeout

Amount of time that this build should be allowed to run, to second

images

A list of images to be pushed upon the successful completion of all build

artifacts

Artifacts that may be built via cr_build_yaml_artifact

options

Options to pass to a Cloud Build

substitutions

Substitutions data for 'Build' resource

availableSecrets

Secret Manager objects built by cr_build_yaml_secrets

serviceAccount

service account email to be used for the build

logsBucket

The gs:// location of a bucket to put logs in

See Also

https://cloud.google.com/build/docs/build-config-file-schema

Other Cloud Build functions: Build(), RepoSource(), Source(), StorageSource(), cr_build_artifacts(), cr_build_list(), cr_build_logs(), 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

cloudbuild <- system.file("cloudbuild/cloudbuild.yaml",
  package = "googleCloudRunner"
)
cr_build_make(cloudbuild)

googleCloudRunner documentation built on March 18, 2022, 8 p.m.