This creates a Build object via the standard cloudbuild.yaml format
cr_build_make(
yaml,
source = NULL,
timeout = NULL,
images = NULL,
artifacts = NULL,
options = NULL,
substitutions = NULL,
availableSecrets = NULL,
serviceAccount = NULL,
logsBucket = NULL
)
A Yaml
object created from cr_build_yaml or a file location of a .yaml/.yml cloud build file
A Source object specifying the location of the source files to build, usually created by cr_build_source
Amount of time that this build should be allowed to run, to second
A list of images to be pushed upon the successful completion of all build
Artifacts that may be built via cr_build_yaml_artifact
Options to pass to a Cloud Build
Substitutions data for `Build` resource
Secret Manager objects built by cr_build_yaml_secrets
service account email to be used for the build
The gs:// location of a bucket to put logs in
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()
cloudbuild <- system.file("cloudbuild/cloudbuild.yaml",
package = "googleCloudRunner"
)
cr_build_make(cloudbuild)
#> ==CloudBuildObject==
#> steps:
#> - name: gcr.io/cloud-builders/docker
#> id: Docker Version
#> args: version
#> - name: alpine
#> id: Hello Cloud Build
#> args:
#> - echo
#> - Hello Cloud Build
#> - name: rocker/r-base
#> id: Hello R
#> args:
#> - Rscript
#> - -e
#> - paste0('1 + 1 = ', 1+1)