From 8eec393c8b075b838d5e7888148df1293def00ec Mon Sep 17 00:00:00 2001 From: googleCloudRunner Date: Thu, 30 Apr 2020 19:35:22 +0000 Subject: [PATCH] [skip travis] Build website from commit bf3ccc94dc5910ebb626cb63be39e7a0b4c98903: 20200430T19:35:22 --- docs/articles/git.html | 6 +++--- docs/articles/setup.html | 6 +++--- docs/articles/usecases.html | 6 +++--- docs/news/index.html | 2 +- docs/pkgdown.yml | 2 +- docs/reference/RepoSource.html | 2 +- docs/reference/Source.html | 2 +- docs/reference/cr_build.html | 2 +- docs/reference/cr_build_write.html | 2 +- docs/reference/cr_build_yaml.html | 2 +- docs/reference/cr_build_yaml_artifact.html | 2 +- docs/reference/cr_buildstep.html | 4 ++-- docs/reference/cr_buildstep_bash.html | 2 +- docs/reference/cr_buildstep_decrypt.html | 2 +- docs/reference/cr_buildstep_docker.html | 8 ++++---- docs/reference/cr_buildstep_git.html | 2 +- docs/reference/cr_buildstep_mailgun.html | 2 +- docs/reference/cr_buildstep_nginx_setup.html | 4 ++-- docs/reference/cr_buildstep_pkgdown.html | 2 +- docs/reference/cr_buildstep_r.html | 2 +- docs/reference/cr_buildtrigger.html | 2 +- docs/reference/cr_deploy_docker.html | 2 +- docs/reference/cr_deploy_packagetests.html | 4 ++-- docs/reference/cr_deploy_pkgdown.html | 2 +- docs/reference/cr_plumber_pubsub.html | 2 +- docs/reference/cr_setup_test.html | 4 ++-- 26 files changed, 39 insertions(+), 39 deletions(-) diff --git a/docs/articles/git.html b/docs/articles/git.html index 4e579666..e5a687ae 100644 --- a/docs/articles/git.html +++ b/docs/articles/git.html @@ -129,7 +129,7 @@

2020-04-30

Cloud Build Triggers and GitHub App

-

Cloud Builds can be triggered via Build Triggers, and those Build Triggers can be initiated by GitHub, Bitbucket or Cloud Repostiory events such as commits or pull requests.

+

Cloud Builds can be triggered via Build Triggers, and those Build Triggers can be initiated by GitHub, Bitbucket or Cloud Repository events such as commits or pull requests.

A common use case is triggering R package tests upon each commit.

@@ -158,9 +158,9 @@

) )

-
+

-Duplicating git repos to Cloud Source repostiories

+Duplicating git repos to Cloud Source repositories

You can also use Google Cloud Platform’s git repostory system directly, name Cloud Source Repositories. Even if you don’t use them day to day, you can set them up as duplicate of your preferred Git service, which then enables you to use workflows that only work from Cloud Source Repositories.

This enables you to create Builds that rely on Source objects under git control, an alternative to Cloud Storage buckets.

diff --git a/docs/articles/setup.html b/docs/articles/setup.html index 5db7f7e3..47dff3d8 100644 --- a/docs/articles/setup.html +++ b/docs/articles/setup.html @@ -143,7 +143,7 @@

cr_setup_auth() and cr_setup_service()

-

You can configure authentication separately, as its usually the trickest bit. The cr_setup_auth() function attempts to help you walk through the authentication and after running it and restarting R a couple of times you should only need to download a client ID from your project to have it all configured for you.

+

You can configure authentication separately, as its usually the trickiest bit. The cr_setup_auth() function attempts to help you walk through the authentication and after running it and restarting R a couple of times you should only need to download a client ID from your project to have it all configured for you.

If you are customising things then cr_setup_service() may be useful, which lets you add common roles to the service account emails. The other setup functions call it to set things up for you, but you may want more control, or have special needs for your cloudbuild email for example, which needs roles assigned for certain services you want to build.

@@ -259,9 +259,9 @@

  • The Cloud Build service account needs permissions if you want it to deploy to Cloud Run: This can be set here where you enable Cloud Run Admin and Service Account User roles. More details found at this Google reference article.
  • Ensure you also have a service email in your IAM section called service-{project-number}@gcp-sa-cloudscheduler.iam.gserviceaccount.com with Cloud Scheduler Service Agent role. This is only needed if you created the project before March 2019. This only needs to exist in the GCP project, it is not used in deployment. See here
  • -
  • To use cr_buildstep_secret() for Google Secret Manager you need the Secret Manager Secret Accessor role assigned to the build service email ({project-number}@cloudbuild.gserviceaccount.com). See using encryupted secrets and credentials Google help page. If you want to use the decryption service such as from cr_buildstep_decrypt() then your Cloud Build service account needs to have at least Cloud KMS CryptoKey Decrypter role.
  • +
  • To use cr_buildstep_secret() for Google Secret Manager you need the Secret Manager Secret Accessor role assigned to the build service email ({project-number}@cloudbuild.gserviceaccount.com). See using encrypted secrets and credentials Google help page. If you want to use the decryption service such as from cr_buildstep_decrypt() then your Cloud Build service account needs to have at least Cloud KMS CryptoKey Decrypter role.
  • Likewise with other GCP services the Cloud Build will use - i.e. if you want to use BigQuery services in your builds, give your build email BigQuery IAM access
  • -
  • For Cloud Run you need iam.serviceaccounts.actAs permission on the {project-number}-compute@developer.gserviceaccount.com service email that should be there by default. Simiarly, service-{project-number}@serverless-robot-prod.iam.gserviceaccount.com should have the role Cloud Run Service Agent +
  • For Cloud Run you need iam.serviceaccounts.actAs permission on the {project-number}-compute@developer.gserviceaccount.com service email that should be there by default. Similarly, service-{project-number}@serverless-robot-prod.iam.gserviceaccount.com should have the role Cloud Run Service Agent
  • diff --git a/docs/articles/usecases.html b/docs/articles/usecases.html index 7fab2049..c1f716d3 100644 --- a/docs/articles/usecases.html +++ b/docs/articles/usecases.html @@ -158,7 +158,7 @@

  • Create a Build Trigger for your git repository:
    • -
    • point at the cloudbuild.yml file you commited (e.g. cloudbuild-pkgdown.yml)
    • +
    • point at the cloudbuild.yml file you committed (e.g. cloudbuild-pkgdown.yml)
    • Make sure to exclude the docs/** folder in the build trigger else the trigger will retrigger when the website is built and pushed to the repo!
    • You may also want to exclude other folders such as tests/**
    • Add a substitution variable _GITHUB_REPO with your Git address you want to push to e.g. MarkEdmondson1234/googleCloudRunner
    • @@ -185,7 +185,7 @@

    • Create a Build Trigger for your git repository:
      • -
      • point at the cloudbuild.yml file you commited (e.g. cloudbuild-tests.yml)
      • +
      • point at the cloudbuild.yml file you committed (e.g. cloudbuild-tests.yml)
      • Exclude any folders such as the docs/** folder where changes should not trigger a recheck
      • Add a substitution variable _CODECOV_TOKEN if you are using it
      @@ -296,7 +296,7 @@

      paste("Echo:", x) } -#' Recieve pub/sub message +#' Receive pub/sub message #' @post /pubsub #' @param message a pub/sub message function(message=NULL){ diff --git a/docs/news/index.html b/docs/news/index.html index 784e7aa1..bfec9062 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -185,7 +185,7 @@

    • Add cr_buildstep_secret() using Secret Manager (#52)
    • Update cr_deploy_pkgdown() to use Secret Manager (#54)
    • -
    • Remove uncessary projectId argument from cr_build_make() (#57)
    • +
    • Remove unnecessary projectId argument from cr_build_make() (#57)
    • Add cr_setup() to help setup a googleCloudRunner environment (#53)

    diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 9483bc22..72f8a50e 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -8,7 +8,7 @@ articles: git: git.html setup: setup.html usecases: usecases.html -last_built: 2020-04-30T19:25Z +last_built: 2020-04-30T19:34Z urls: reference: https://code.markedmondson.me/googleCloudRunner/reference article: https://code.markedmondson.me/googleCloudRunner/articles diff --git a/docs/reference/RepoSource.html b/docs/reference/RepoSource.html index b76f8e52..24e680f5 100644 --- a/docs/reference/RepoSource.html +++ b/docs/reference/RepoSource.html @@ -230,7 +230,7 @@

    See a cr_build()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:43 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:25:43 > Bucket set to my-bucket
    #> [1] "my-bucket"
    if (FALSE) { +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:00 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:35:00 > Bucket set to my-bucket
    #> [1] "my-bucket"
    if (FALSE) { my_repo <- cr_build_source( RepoSource("github_markedmondson1234_googlecloudrunner", diff --git a/docs/reference/Source.html b/docs/reference/Source.html index 672e0fe6..d7828192 100644 --- a/docs/reference/Source.html +++ b/docs/reference/Source.html @@ -207,7 +207,7 @@

    See a

    Examples

    -cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:43 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:25:43 > Bucket set to my-bucket
    #> [1] "my-bucket"
    my_gcs_source <- Source(storageSource=StorageSource("my_code.tar.gz", +cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:00 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:35:00 > Bucket set to my-bucket
    #> [1] "my-bucket"
    my_gcs_source <- Source(storageSource=StorageSource("my_code.tar.gz", "gs://my-bucket")) my_repo_source <- Source(repoSource=RepoSource("https://my-repo.com", branchName="master")) diff --git a/docs/reference/cr_build.html b/docs/reference/cr_build.html index f6b9a623..4a14503e 100644 --- a/docs/reference/cr_build.html +++ b/docs/reference/cr_build.html @@ -237,7 +237,7 @@

    See a cr_build_yaml()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:44 > ProjectId set to my-project
    #> [1] "my-project"
    my_gcs_source <- cr_build_source(StorageSource("my_code.tar.gz", +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:01 > ProjectId set to my-project
    #> [1] "my-project"
    my_gcs_source <- cr_build_source(StorageSource("my_code.tar.gz", bucket = "gs://my-bucket")) my_gcs_source
    #> ==CloudBuildSource== #> ==CloudBuildStorageSource== diff --git a/docs/reference/cr_build_write.html b/docs/reference/cr_build_write.html index 31c2e152..85d6ad6d 100644 --- a/docs/reference/cr_build_write.html +++ b/docs/reference/cr_build_write.html @@ -198,7 +198,7 @@

    See a cr_build()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:44 > ProjectId set to my-project
    #> [1] "my-project"
    # write from creating a Yaml object +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:02 > ProjectId set to my-project
    #> [1] "my-project"
    # write from creating a Yaml object image = "gcr.io/my-project/my-image$BUILD_ID" run_yaml <- cr_build_yaml(steps = c( cr_buildstep("docker", c("build","-t",image,".")), diff --git a/docs/reference/cr_build_yaml.html b/docs/reference/cr_build_yaml.html index 637f3ccc..03e245ab 100644 --- a/docs/reference/cr_build_yaml.html +++ b/docs/reference/cr_build_yaml.html @@ -237,7 +237,7 @@

    See a cr_build()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:44 > ProjectId set to my-project
    #> [1] "my-project"
    image <- "gcr.io/my-project/my-image" +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:02 > ProjectId set to my-project
    #> [1] "my-project"
    image <- "gcr.io/my-project/my-image" cr_build_yaml(steps = c( cr_buildstep("docker", c("build","-t",image,".")), cr_buildstep("docker", c("push",image)), diff --git a/docs/reference/cr_build_yaml_artifact.html b/docs/reference/cr_build_yaml_artifact.html index a30416a3..8dac3a03 100644 --- a/docs/reference/cr_build_yaml_artifact.html +++ b/docs/reference/cr_build_yaml_artifact.html @@ -202,7 +202,7 @@

    See a cr_build()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:45 > ProjectId set to my-project
    #> [1] "my-project"
    r <- "write.csv(mtcars,file = 'artifact.csv')" +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:02 > ProjectId set to my-project
    #> [1] "my-project"
    r <- "write.csv(mtcars,file = 'artifact.csv')" cr_build_yaml( steps = cr_buildstep_r(r), artifacts = cr_build_yaml_artifact('artifact.csv', bucket = "my-bucket") diff --git a/docs/reference/cr_buildstep.html b/docs/reference/cr_buildstep.html index 0f9330b8..b30e58a0 100644 --- a/docs/reference/cr_buildstep.html +++ b/docs/reference/cr_buildstep.html @@ -264,7 +264,7 @@

    See a cr_buildstep_slack()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:45 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:25:45 > Bucket set to my-bucket
    #> [1] "my-bucket"
    # creating yaml for use in deploying cloud run +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:02 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:35:02 > Bucket set to my-bucket
    #> [1] "my-bucket"
    # creating yaml for use in deploying cloud run image = "gcr.io/my-project/my-image:$BUILD_ID" cr_build_yaml( steps = c( @@ -302,7 +302,7 @@

    Examp args = c("beta","run","deploy", "test1","--image", image)) ), - images = image)

    #> ℹ 2020-04-30 19:25:45 > Image to be built: gcr.io/my-project/my-image:$BUILD_ID
    #> ==cloudRunnerYaml== + images = image)
    #> ℹ 2020-04-30 19:35:02 > Image to be built: gcr.io/my-project/my-image:$BUILD_ID
    #> ==cloudRunnerYaml== #> steps: #> - name: gcr.io/cloud-builders/docker #> args: diff --git a/docs/reference/cr_buildstep_bash.html b/docs/reference/cr_buildstep_bash.html index 1e9e0675..07d97c32 100644 --- a/docs/reference/cr_buildstep_bash.html +++ b/docs/reference/cr_buildstep_bash.html @@ -216,7 +216,7 @@

    See a cr_buildstep()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:45 > ProjectId set to my-project
    #> [1] "my-project"
    bs <- cr_build_yaml( +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:03 > ProjectId set to my-project
    #> [1] "my-project"
    bs <- cr_build_yaml( steps = cr_buildstep_bash("echo 'Hello'") ) diff --git a/docs/reference/cr_buildstep_decrypt.html b/docs/reference/cr_buildstep_decrypt.html index ecc273d7..6db7cfc9 100644 --- a/docs/reference/cr_buildstep_decrypt.html +++ b/docs/reference/cr_buildstep_decrypt.html @@ -227,7 +227,7 @@

    See a cr_buildstep()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:45 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:25:45 > Bucket set to my-bucket
    #> [1] "my-bucket"
    cr_buildstep_decrypt("secret.json.enc", +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:03 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:35:03 > Bucket set to my-bucket
    #> [1] "my-bucket"
    cr_buildstep_decrypt("secret.json.enc", plain = "secret.json", keyring = "my_keyring", key = "my_key")
    #> [[1]] diff --git a/docs/reference/cr_buildstep_docker.html b/docs/reference/cr_buildstep_docker.html index b10ee7a7..f4ebb094 100644 --- a/docs/reference/cr_buildstep_docker.html +++ b/docs/reference/cr_buildstep_docker.html @@ -223,8 +223,8 @@

    See a cr_buildstep()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:45 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:25:45 > Bucket set to my-bucket
    #> [1] "my-bucket"
    -cr_buildstep_docker("gcr.io/my-project/my-image")
    #> ℹ 2020-04-30 19:25:45 > Image to be built: gcr.io/my-project/my-image:$BUILD_ID
    #> [[1]] +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:03 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:35:03 > Bucket set to my-bucket
    #> [1] "my-bucket"
    +cr_buildstep_docker("gcr.io/my-project/my-image")
    #> ℹ 2020-04-30 19:35:03 > Image to be built: gcr.io/my-project/my-image:$BUILD_ID
    #> [[1]] #> ==cloudRunnerBuildStep== #> name: gcr.io/cloud-builders/docker #> args: @@ -241,7 +241,7 @@

    Examp #> args: #> - push #> - gcr.io/my-project/my-image:$BUILD_ID -#>

    cr_buildstep_docker("my-image")
    #> ℹ 2020-04-30 19:25:45 > Image to be built: gcr.io/my-project/my-image:$BUILD_ID
    #> [[1]] +#>
    cr_buildstep_docker("my-image")
    #> ℹ 2020-04-30 19:35:03 > Image to be built: gcr.io/my-project/my-image:$BUILD_ID
    #> [[1]] #> ==cloudRunnerBuildStep== #> name: gcr.io/cloud-builders/docker #> args: @@ -258,7 +258,7 @@

    Examp #> args: #> - push #> - gcr.io/my-project/my-image:$BUILD_ID -#>

    cr_buildstep_docker("my-image", tag = "$BRANCH_NAME")
    #> ℹ 2020-04-30 19:25:45 > Image to be built: gcr.io/my-project/my-image:$BRANCH_NAME
    #> [[1]] +#>
    cr_buildstep_docker("my-image", tag = "$BRANCH_NAME")
    #> ℹ 2020-04-30 19:35:03 > Image to be built: gcr.io/my-project/my-image:$BRANCH_NAME
    #> [[1]] #> ==cloudRunnerBuildStep== #> name: gcr.io/cloud-builders/docker #> args: diff --git a/docs/reference/cr_buildstep_git.html b/docs/reference/cr_buildstep_git.html index 34cac447..e48051fe 100644 --- a/docs/reference/cr_buildstep_git.html +++ b/docs/reference/cr_buildstep_git.html @@ -220,7 +220,7 @@

    See a cr_buildstep()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:46 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:25:46 > Bucket set to my-bucket
    #> [1] "my-bucket"
    +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:03 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:35:03 > Bucket set to my-bucket
    #> [1] "my-bucket"
    # assumes you have previously saved git ssh key called "github-ssh" cr_build_yaml( steps = c( diff --git a/docs/reference/cr_buildstep_mailgun.html b/docs/reference/cr_buildstep_mailgun.html index 51fc854c..36abb128 100644 --- a/docs/reference/cr_buildstep_mailgun.html +++ b/docs/reference/cr_buildstep_mailgun.html @@ -232,7 +232,7 @@

    See a cr_buildstep()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:46 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:25:46 > Bucket set to my-bucket
    #> [1] "my-bucket"
    mailgun_url <- "https://api.mailgun.net/v3/sandboxXXX.mailgun.org" +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:04 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:35:04 > Bucket set to my-bucket
    #> [1] "my-bucket"
    mailgun_url <- "https://api.mailgun.net/v3/sandboxXXX.mailgun.org" mailgun_key <- "key-XXXX" if (FALSE) { diff --git a/docs/reference/cr_buildstep_nginx_setup.html b/docs/reference/cr_buildstep_nginx_setup.html index 69e373ee..6c86f75e 100644 --- a/docs/reference/cr_buildstep_nginx_setup.html +++ b/docs/reference/cr_buildstep_nginx_setup.html @@ -201,7 +201,7 @@

    See a cr_buildstep()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:46 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:25:46 > Bucket set to my-bucket
    #> [1] "my-bucket"
    cr_region_set("europe-west1")
    #> ℹ 2020-04-30 19:25:46 > Region set to europe-west1
    #> [1] "europe-west1"
    +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:04 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:35:04 > Bucket set to my-bucket
    #> [1] "my-bucket"
    cr_region_set("europe-west1")
    #> ℹ 2020-04-30 19:35:04 > Region set to europe-west1
    #> [1] "europe-west1"
    html_folder <- "my_html" run_image <- "gcr.io/my-project/my-image-for-cloudrun" cr_build_yaml( @@ -212,7 +212,7 @@

    Examp image = run_image, concurrency = 80) ) - )

    #> ℹ 2020-04-30 19:25:46 > Image to be built: gcr.io/my-project/my-image-for-cloudrun:$BUILD_ID
    #> ==cloudRunnerYaml== + )
    #> ℹ 2020-04-30 19:35:04 > Image to be built: gcr.io/my-project/my-image-for-cloudrun:$BUILD_ID
    #> ==cloudRunnerYaml== #> steps: #> - name: ubuntu #> args: diff --git a/docs/reference/cr_buildstep_pkgdown.html b/docs/reference/cr_buildstep_pkgdown.html index 7f8e66d1..ddee2b6e 100644 --- a/docs/reference/cr_buildstep_pkgdown.html +++ b/docs/reference/cr_buildstep_pkgdown.html @@ -235,7 +235,7 @@

    See a cr_buildstep()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:46 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:25:46 > Bucket set to my-bucket
    #> [1] "my-bucket"
    +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:04 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:35:04 > Bucket set to my-bucket
    #> [1] "my-bucket"
    # set github repo directly to write it out via cr_build_write() cr_buildstep_pkgdown("MarkEdmondson1234/googleCloudRunner", git_email = "cloudbuild@google.com", diff --git a/docs/reference/cr_buildstep_r.html b/docs/reference/cr_buildstep_r.html index 80614560..92761d61 100644 --- a/docs/reference/cr_buildstep_r.html +++ b/docs/reference/cr_buildstep_r.html @@ -223,7 +223,7 @@

    See a cr_buildstep()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:47 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:25:47 > Bucket set to my-bucket
    #> [1] "my-bucket"
    +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:05 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:35:05 > Bucket set to my-bucket
    #> [1] "my-bucket"
    # create an R buildstep inline cr_buildstep_r(c("paste('1+1=', 1+1)", "sessionInfo()"))
    #> [[1]] #> ==cloudRunnerBuildStep== diff --git a/docs/reference/cr_buildtrigger.html b/docs/reference/cr_buildtrigger.html index 1babfab8..cfc0a79c 100644 --- a/docs/reference/cr_buildtrigger.html +++ b/docs/reference/cr_buildtrigger.html @@ -237,7 +237,7 @@

    See a cr_buildtrigger_run()

    Examples

    -
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:25:47 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:25:47 > Bucket set to my-bucket
    #> [1] "my-bucket"
    cloudbuild <- system.file("cloudbuild/cloudbuild.yaml", +
    cr_project_set("my-project")
    #> ℹ 2020-04-30 19:35:05 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket")
    #> ℹ 2020-04-30 19:35:05 > Bucket set to my-bucket
    #> [1] "my-bucket"
    cloudbuild <- system.file("cloudbuild/cloudbuild.yaml", package = "googleCloudRunner") bb <- cr_build_make(cloudbuild) github <- GitHubEventsConfig("MarkEdmondson1234/googleCloudRunner", diff --git a/docs/reference/cr_deploy_docker.html b/docs/reference/cr_deploy_docker.html index 29012b87..b10da454 100644 --- a/docs/reference/cr_deploy_docker.html +++ b/docs/reference/cr_deploy_docker.html @@ -208,7 +208,7 @@

    Arg bucket -

    The GCS bucker that will be used to deploy code source

    +

    The GCS bucket that will be used to deploy code source

    projectId diff --git a/docs/reference/cr_deploy_packagetests.html b/docs/reference/cr_deploy_packagetests.html index 39371228..e2549459 100644 --- a/docs/reference/cr_deploy_packagetests.html +++ b/docs/reference/cr_deploy_packagetests.html @@ -233,7 +233,7 @@

    See a

    Examples

    -pd <- cr_deploy_packagetests()
    #> ℹ 2020-04-30 19:25:48 > Writing to cloudbuild-tests.yml
    #>
    #> ℹ Complete deployment of tests Cloud Build yaml:
    #> ● Go to https://console.cloud.google.com/cloud-build/triggers and +pd <- cr_deploy_packagetests()
    #> ℹ 2020-04-30 19:35:06 > Writing to cloudbuild-tests.yml
    #>
    #> ℹ Complete deployment of tests Cloud Build yaml:
    #> ● Go to https://console.cloud.google.com/cloud-build/triggers and #> make a build trigger pointing at this file in your repo: #> cloudbuild-tests.yml
    #> ℹ Build Trigger substitution variable settings: #> _CODECOV_TOKEN = your-codecov-token @@ -267,7 +267,7 @@

    Examp steps = cr_buildstep_secret("my_secret", "auth.json"), env = c("NOT_CRAN=true", "MY_AUTH_FILE=auth.json"), timeout = 1200 -)

    #> ℹ 2020-04-30 19:25:48 > Writing to cloudbuild-tests.yml
    #>
    #> ℹ Complete deployment of tests Cloud Build yaml:
    #> ● Go to https://console.cloud.google.com/cloud-build/triggers and +)
    #> ℹ 2020-04-30 19:35:06 > Writing to cloudbuild-tests.yml
    #>
    #> ℹ Complete deployment of tests Cloud Build yaml:
    #> ● Go to https://console.cloud.google.com/cloud-build/triggers and #> make a build trigger pointing at this file in your repo: #> cloudbuild-tests.yml
    #> ℹ Build Trigger substitution variable settings: #> _CODECOV_TOKEN = your-codecov-token diff --git a/docs/reference/cr_deploy_pkgdown.html b/docs/reference/cr_deploy_pkgdown.html index 7dd5ffe0..250e8a86 100644 --- a/docs/reference/cr_deploy_pkgdown.html +++ b/docs/reference/cr_deploy_pkgdown.html @@ -237,7 +237,7 @@

    See a

    Examples

    -pd <- cr_deploy_pkgdown(secret = "my_git_secret")
    #> ℹ 2020-04-30 19:25:48 > Writing to cloudbuild-pkgdown.yml
    #>
    #> ℹ Complete deployment of pkgdown Cloud Build yaml:
    #> ● Go to https://console.cloud.google.com/cloud-build/triggers and +pd <- cr_deploy_pkgdown(secret = "my_git_secret")
    #> ℹ 2020-04-30 19:35:07 > Writing to cloudbuild-pkgdown.yml
    #>
    #> ℹ Complete deployment of pkgdown Cloud Build yaml:
    #> ● Go to https://console.cloud.google.com/cloud-build/triggers and #> make a build trigger pointing at this file in your repo: #> cloudbuild-pkgdown.yml
    #> ℹ Build Trigger substitution variable settings: #> _GITHUB_REPO = username/repo
    #> ℹ Ignored files filter (glob): docs/**
    pd
    #> ==CloudBuildObject== diff --git a/docs/reference/cr_plumber_pubsub.html b/docs/reference/cr_plumber_pubsub.html index 1795aa53..2e8828f5 100644 --- a/docs/reference/cr_plumber_pubsub.html +++ b/docs/reference/cr_plumber_pubsub.html @@ -184,7 +184,7 @@

    Arg

    Details

    This function is intended to be used within plumb API scripts. It needs to be annotated with a @post URL route and a @param message The pubsub message as per the plumber documentation.

    -

    pass_f should be a function you create that accepts one argument, the data from the pubsub message$data field. It is unencoded for you. Make sure the function returns a 200 response otherwise pub/sub will keep resending the message! return(TRUE) is adequete

    +

    pass_f should be a function you create that accepts one argument, the data from the pubsub message$data field. It is unencoded for you. Make sure the function returns a 200 response otherwise pub/sub will keep resending the message! return(TRUE) is adequate.

    The Docker container for the API will need to include googleCloudRunner installed in its R environment to run this function. This is available in the public gcr.io/gcer-public/cloudrunner image.

    Use cr_pubsub to test this function once deployed.

    See also

    diff --git a/docs/reference/cr_setup_test.html b/docs/reference/cr_setup_test.html index c81b9782..5f500ce7 100644 --- a/docs/reference/cr_setup_test.html +++ b/docs/reference/cr_setup_test.html @@ -40,7 +40,7 @@ - + @@ -163,7 +163,7 @@

    Run tests over your setup

    -

    This allows you to check if your setup works

    +

    This allows you to check if your setup works - run cr_setup first.

    cr_setup_test()