This enables an optimised version of gcloud docker for your buildstep such as gcr.io/google.com/cloudsdktool/cloud-sdk:alpine
cr_buildstep_gcloud(component = c("gcloud", "bq", "gsutil", "kubectl"), ...)What gcloud service you need, such as "gcloud", "bq" or "gsutil"
Arguments passed on to cr_buildstep
namename of docker image to call appended to prefix
argscharacter vector of arguments
prefixprefixed to name - set to "" to suppress. Will be suppressed if name starts with gcr.io or *-docker.pkg.dev
entrypointchange the entrypoint for the docker container
dirThe directory to use, relative to /workspace e.g. /workspace/deploy/
idOptional id for the step
envEnvironment variables for this step. A character vector for each assignment
volumesvolumes to connect and write to
waitForWhether to wait for previous buildsteps to complete before running. Default it will wait for previous step.
secretEnvA list of secrets stored in Secret Manager referred to in args via a $$var
https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcloud
Other Cloud Buildsteps:
cr_buildstep_bash(),
cr_buildstep_decrypt(),
cr_buildstep_df(),
cr_buildstep_docker(),
cr_buildstep_edit(),
cr_buildstep_extract(),
cr_buildstep_gitsetup(),
cr_buildstep_mailgun(),
cr_buildstep_nginx_setup(),
cr_buildstep_packagetests(),
cr_buildstep_pkgdown(),
cr_buildstep_run(),
cr_buildstep_r(),
cr_buildstep_secret(),
cr_buildstep_slack(),
cr_buildstep_targets(),
cr_buildstep()