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, logsBucket = NULL )
yaml | A |
---|---|
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 |
logsBucket | The gs:// location of a bucket to put logs in |
https://cloud.google.com/cloud-build/docs/build-config
Other Cloud Build functions:
Build()
,
RepoSource()
,
Source()
,
StorageSource()
,
cr_build_artifacts()
,
cr_build_list()
,
cr_build_logs()
,
cr_build_status()
,
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)