Setup functions

Functions setting up your GCP configuration

cr_setup()

A helper setup function for setting up use with googleCloudRunner

cr_setup_auth()

Create a service account for googleCloudRunner

cr_setup_service() cr_setup_role_lookup()

Give a service account the right permissions for googleCloudRunner operations

cr_setup_test()

Run tests over your setup

cr_bucket_set() cr_bucket_get()

Get/Set the Cloud Storage bucket for your Cloud Build Service

cr_email_get() cr_email_set()

Get/Set cloud build email

cr_project_set() cr_project_get()

Get/Set the projectId for your CloudRun services

cr_region_set() cr_region_get()

Get/Set the endpoint for your CloudRun services

Deployment functions

Functions for deploying useful applications

cr_deploy_badger() cr_build_logs_badger()

Deploy a Cloud Run app to display build badges

cr_deploy_docker()

Deploy a local Dockerfile to be built on ContainerRegistry

cr_deploy_docker_trigger()

Deploy Docker build from a Git repo

cr_deploy_gadget()

Launch the googleCloudRunner deployment RStudio gadget

cr_deploy_packagetests()

Deploy a cloudbuild.yml for R package tests and upload to Codecov

cr_deploy_pkgdown()

Deploy a cloudbuild.yml for a pkgdown website of an R package

cr_deploy_r()

Deploy an R script with an optional schedule

cr_deploy_run() cr_deploy_html() cr_deploy_plumber()

Deploy to Cloud Run

cr_deploy_run_website()

Deploy HTML built from a repo each commit

Cloud Build functions

Functions for working with Cloud Build

cr_build()

Starts a build with the specified configuration.

cr_build_artifacts()

Download artifacts from a build

cr_build_list() cr_build_list_filter()

Lists the build

cr_build_logs() cr_build_logs_last()

Download logs from a Cloud Build

cr_build_make()

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

cr_build_schedule_http()

Create a Cloud Scheduler HTTP target from a Cloud Build object

cr_build_source()

Build a source object

cr_build_status()

Returns information about a previously requested build.

cr_build_upload_gcs()

Create a StorageSource

cr_build_wait()

Wait for a Build to run

cr_build_write()

Write out a Build object to cloudbuild.yaml

cr_build_yaml()

Create a cloudbuild Yaml object in R

cr_build_yaml_artifact()

Add an artifact for cloudbuild.yaml

cr_build_yaml_secrets()

Create an availableSecrets entry for build yaml

cr_deploy_badger() cr_build_logs_badger()

Deploy a Cloud Run app to display build badges

cr_sourcerepo_list()

List source repositories available under a project

Build()

Build Object

Source()

Source Object

RepoSource()

RepoSource Object

StorageSource()

StorageSource Object

Cloud Build creation functions

Functions for creation of cloudbuild.yaml files and build steps

cr_buildstep()

Create a yaml build step

cr_buildstep_bash()

Run a bash script in a Cloud Build step

cr_buildstep_decrypt()

Create a build step for decrypting files via KMS

cr_buildstep_df()

Convert a data.frame into cr_buildstep

cr_buildstep_docker()

Create a build step to build and push a docker image

cr_buildstep_edit()

Modify an existing buildstep with new parameters

cr_buildstep_extract()

Extract a buildstep from a Build object

cr_buildstep_gcloud()

A buildstep template for gcloud

cr_buildstep_gitsetup() cr_buildstep_git() git_volume()

Create a build step for authenticating with Git

cr_buildstep_mailgun()

Send an email in a Cloud Build step via MailGun.org

cr_buildstep_nginx_setup()

Setup nginx for Cloud Run in a buildstep

cr_buildstep_packagetests()

Do R package tests and upload to Codecov

cr_buildstep_pkgdown()

Create buildsteps for deploying an R pkgdown website to GitHub

cr_buildstep_r()

Run an R script in a Cloud Build R step

cr_buildstep_run()

Create buildsteps to deploy to Cloud Run

cr_buildstep_secret()

Create a buildstep for using Secret Manager

cr_buildstep_slack()

Send a Slack message to a channel from a Cloud Build step

cr_build_yaml()

Create a cloudbuild Yaml object in R

cr_build_yaml_artifact()

Add an artifact for cloudbuild.yaml

cr_build_yaml_secrets()

Create an availableSecrets entry for build yaml

Cloud Build Trigger functions

Functions for creation of triggers that determine when the builds run

cr_buildtrigger()

Creates a new `BuildTrigger`.This API is experimental.

cr_buildtrigger_copy()

Copy a buildtrigger

cr_buildtrigger_delete()

Deletes a `BuildTrigger` by its project ID and trigger ID.This API is experimental.

cr_buildtrigger_edit()

Updates a `BuildTrigger` by its project ID and trigger ID.This API is experimental.

cr_buildtrigger_get()

Returns information about a `BuildTrigger`.This API is experimental.

cr_buildtrigger_list()

Lists existing `BuildTrigger`s.This API is experimental.

cr_buildtrigger_repo()

Create a buildtrigger repo object

cr_buildtrigger_run()

Runs a `BuildTrigger` at a particular source revision.

cr_sourcerepo_list()

List source repositories available under a project

GitHubEventsConfig()

GitHubEventsConfig Object

BuildTrigger()

BuildTrigger Object

Cloud Run functions

Functions for working with Cloud Run deployments

cr_run()

Create a CloudRun service.

cr_run_email()

Create an invoker email for use within authenticated Cloud Run

cr_run_get()

Get information about a Cloud Run service.

cr_run_list()

List CloudRun services.

cr_run_schedule_http()

Create a Cloud Scheduler HTTP target for a private Cloud Run URI

cr_deploy_run() cr_deploy_html() cr_deploy_plumber()

Deploy to Cloud Run

cr_plumber_pubsub()

Plumber - Pub/Sub parser

cr_pubsub()

Send a message to pubsub

JWT authorisation

Functions for working with authenticated Google apps, such as Cloud Run

cr_jwt_create() cr_jwt_token() cr_jwt_with_httr() cr_jwt_with_curl() cr_jwt_async()

Create a JSON Web Token (JWT) from your service client and call Google services

Cloud Scheduler functions

Functions for working with Cloud Scheduler

cr_schedule()

Creates or updates a Cloud Scheduler job.

cr_schedule_delete()

Deletes a scheduled job.

cr_schedule_get()

Gets a scheduler job.

cr_schedule_list()

Lists Cloud Scheduler jobs.

cr_schedule_pause() cr_schedule_resume()

Pauses and resumes a scheduled job.

cr_schedule_run()

Forces a job to run now.

cr_build_schedule_http()

Create a Cloud Scheduler HTTP target from a Cloud Build object

cr_run_schedule_http()

Create a Cloud Scheduler HTTP target for a private Cloud Run URI

Job()

Job Schedule Object

HttpTarget()

HttpTarget Object