cr_deploy_badger {googleCloudRunner} | R Documentation |
Deploy a Cloud Run app to display build badges
Description
This uses https://github.com/kelseyhightower/badger to create badges you can display in README.md etc. showing the current status of a Cloud Build
Usage
cr_deploy_badger(
badger_image = "gcr.io/hightowerlabs/badger:0.0.1",
json = Sys.getenv("GAR_CLIENT_JSON"),
region = cr_region_get()
)
cr_build_logs_badger(dir = getwd(), projectId = cr_project_get())
Arguments
badger_image |
The docker image from the badger project to use |
json |
The clientId JSON file of the project to create within |
region |
The Cloud Run region |
dir |
The directory containing the README.md file |
projectId |
The projectId running the badger badge for a buildtrigger |
Details
cr_build_logs_badger
is intended to be run from the root directory of
an R package that holds a README.md file containing a ![Cloudbuild]
badge as created by cr_deploy_badger()
. The function will scan the
README.md file for the correct triggerId to pass to cr_buildtrigger_logs
[Package googleCloudRunner version 0.5.0 Index]