diff --git a/docs/news/index.html b/docs/news/index.html index 4dcb1b91..64878aa4 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -239,6 +239,7 @@

  • Parse gar_Build objects to lists in buildtrigger responses so they can be more easily reused
  • Fix bug with Cloud Run deployments not returning image names (#141 - thanks @engti)
  • Added rscript_args to cr_buildstep_r() - (#128 - thanks @simonsays1980)
  • +
  • All cr_setup_test() to be run without the interactive menu (#129 - thanks @muschellij2)
  • diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 34c07c3d..728e88ff 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -21,7 +21,7 @@ articles: usecase-slackbot-google-analytics: usecase-slackbot-google-analytics.html usecase-testthat-coverage: usecase-testthat-coverage.html usecases: usecases.html -last_built: 2021-11-06T08:58Z +last_built: 2021-11-06T09:19Z 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 26046821..0fbcd163 100644 --- a/docs/reference/RepoSource.html +++ b/docs/reference/RepoSource.html @@ -287,8 +287,8 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:50 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") -
    #> 2021-11-06 08:58:50 > Bucket set to my-bucket
    #> [1] "my-bucket"
    if (FALSE) { +
    #> 2021-11-06 09:19:36 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") +
    #> 2021-11-06 09:19:36 > 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 e2dde45a..f95f1224 100644 --- a/docs/reference/Source.html +++ b/docs/reference/Source.html @@ -264,8 +264,8 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:51 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") -
    #> 2021-11-06 08:58:51 > Bucket set to my-bucket
    #> [1] "my-bucket"
    my_gcs_source <- Source(storageSource=StorageSource("my_code.tar.gz", +
    #> 2021-11-06 09:19:36 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") +
    #> 2021-11-06 09:19:36 > 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 5666ca93..afc22cc3 100644 --- a/docs/reference/cr_build.html +++ b/docs/reference/cr_build.html @@ -294,7 +294,7 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:51 > ProjectId set to my-project
    #> [1] "my-project"
    my_gcs_source <- cr_build_source(StorageSource("my_code.tar.gz", +
    #> 2021-11-06 09:19:37 > 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== diff --git a/docs/reference/cr_build_write.html b/docs/reference/cr_build_write.html index 1a2e5859..1df63c12 100644 --- a/docs/reference/cr_build_write.html +++ b/docs/reference/cr_build_write.html @@ -255,7 +255,7 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:53 > ProjectId set to my-project
    #> [1] "my-project"
    # write from creating a Yaml object +
    #> 2021-11-06 09:19:39 > 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 bbac3b5a..0804e0c9 100644 --- a/docs/reference/cr_build_yaml.html +++ b/docs/reference/cr_build_yaml.html @@ -299,7 +299,7 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:53 > ProjectId set to my-project
    #> [1] "my-project"
    image <- "gcr.io/my-project/my-image" +
    #> 2021-11-06 09:19:39 > 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_buildstep.html b/docs/reference/cr_buildstep.html index bc575e5e..e777dd45 100644 --- a/docs/reference/cr_buildstep.html +++ b/docs/reference/cr_buildstep.html @@ -331,8 +331,8 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:53 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") -
    #> 2021-11-06 08:58:53 > Bucket set to my-bucket
    #> [1] "my-bucket"
    # creating yaml for use in deploying cloud run +
    #> 2021-11-06 09:19:39 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") +
    #> 2021-11-06 09:19:39 > 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( diff --git a/docs/reference/cr_buildstep_bash.html b/docs/reference/cr_buildstep_bash.html index 34a57232..c8ba8a97 100644 --- a/docs/reference/cr_buildstep_bash.html +++ b/docs/reference/cr_buildstep_bash.html @@ -276,7 +276,7 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:53 > ProjectId set to my-project
    #> [1] "my-project"
    bs <- cr_build_yaml( +
    #> 2021-11-06 09:19:39 > 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 92f31462..19a487f9 100644 --- a/docs/reference/cr_buildstep_decrypt.html +++ b/docs/reference/cr_buildstep_decrypt.html @@ -282,8 +282,8 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:54 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") -
    #> 2021-11-06 08:58:54 > Bucket set to my-bucket
    #> [1] "my-bucket"
    cr_buildstep_decrypt("secret.json.enc", +
    #> 2021-11-06 09:19:40 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") +
    #> 2021-11-06 09:19:40 > Bucket set to my-bucket
    #> [1] "my-bucket"
    cr_buildstep_decrypt("secret.json.enc", plain = "secret.json", keyring = "my_keyring", key = "my_key") diff --git a/docs/reference/cr_buildstep_docker.html b/docs/reference/cr_buildstep_docker.html index 809498c5..6633c4be 100644 --- a/docs/reference/cr_buildstep_docker.html +++ b/docs/reference/cr_buildstep_docker.html @@ -287,8 +287,8 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:54 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") -
    #> 2021-11-06 08:58:54 > Bucket set to my-bucket
    #> [1] "my-bucket"
    +
    #> 2021-11-06 09:19:40 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") +
    #> 2021-11-06 09:19:40 > Bucket set to my-bucket
    #> [1] "my-bucket"
    cr_buildstep_docker("gcr.io/my-project/my-image")
    #> [[1]] #> ==cloudRunnerBuildStep== diff --git a/docs/reference/cr_buildstep_git.html b/docs/reference/cr_buildstep_git.html index bd857751..8b218de8 100644 --- a/docs/reference/cr_buildstep_git.html +++ b/docs/reference/cr_buildstep_git.html @@ -278,8 +278,8 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:55 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") -
    #> 2021-11-06 08:58:55 > Bucket set to my-bucket
    #> [1] "my-bucket"
    +
    #> 2021-11-06 09:19:41 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") +
    #> 2021-11-06 09:19:41 > 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 ecfcd03c..bdd61911 100644 --- a/docs/reference/cr_buildstep_mailgun.html +++ b/docs/reference/cr_buildstep_mailgun.html @@ -287,8 +287,8 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:55 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") -
    #> 2021-11-06 08:58:55 > Bucket set to my-bucket
    #> [1] "my-bucket"
    mailgun_url <- "https://api.mailgun.net/v3/sandboxXXX.mailgun.org" +
    #> 2021-11-06 09:19:41 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") +
    #> 2021-11-06 09:19:41 > 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 d3ba02ed..0ae4feb1 100644 --- a/docs/reference/cr_buildstep_nginx_setup.html +++ b/docs/reference/cr_buildstep_nginx_setup.html @@ -256,9 +256,9 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:55 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") -
    #> 2021-11-06 08:58:55 > Bucket set to my-bucket
    #> [1] "my-bucket"
    cr_region_set("europe-west1") -
    #> 2021-11-06 08:58:55 > Region set to europe-west1
    #> [1] "europe-west1"
    +
    #> 2021-11-06 09:19:41 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") +
    #> 2021-11-06 09:19:41 > Bucket set to my-bucket
    #> [1] "my-bucket"
    cr_region_set("europe-west1") +
    #> 2021-11-06 09:19:41 > 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( diff --git a/docs/reference/cr_buildstep_pkgdown.html b/docs/reference/cr_buildstep_pkgdown.html index ed039e10..5e9c3ded 100644 --- a/docs/reference/cr_buildstep_pkgdown.html +++ b/docs/reference/cr_buildstep_pkgdown.html @@ -290,8 +290,8 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:56 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") -
    #> 2021-11-06 08:58:56 > Bucket set to my-bucket
    #> [1] "my-bucket"
    +
    #> 2021-11-06 09:19:42 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") +
    #> 2021-11-06 09:19:42 > 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_buildtrigger.html b/docs/reference/cr_buildtrigger.html index eb8287d8..4ae18750 100644 --- a/docs/reference/cr_buildtrigger.html +++ b/docs/reference/cr_buildtrigger.html @@ -300,8 +300,8 @@

    See a

    Examples

    cr_project_set("my-project") -
    #> 2021-11-06 08:58:58 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") -
    #> 2021-11-06 08:58:58 > Bucket set to my-bucket
    #> [1] "my-bucket"
    cloudbuild <- system.file("cloudbuild/cloudbuild.yaml", +
    #> 2021-11-06 09:19:44 > ProjectId set to my-project
    #> [1] "my-project"
    cr_bucket_set("my-bucket") +
    #> 2021-11-06 09:19:44 > Bucket set to my-bucket
    #> [1] "my-bucket"
    cloudbuild <- system.file("cloudbuild/cloudbuild.yaml", package = "googleCloudRunner") bb <- cr_build_make(cloudbuild) diff --git a/docs/reference/cr_deploy_packagetests.html b/docs/reference/cr_deploy_packagetests.html index 7b538b2c..4ed98e0a 100644 --- a/docs/reference/cr_deploy_packagetests.html +++ b/docs/reference/cr_deploy_packagetests.html @@ -310,7 +310,7 @@

    Examp
    # create a local cloudbuild.yml file for packagetests pd <- cr_deploy_packagetests(create_trigger = "no") -
    #> 2021-11-06 08:58:59 > Writing to cloudbuild-tests.yml
    #>
    #> Complete deployment of tests Cloud Build yaml:
    #> Go to https://console.cloud.google.com/cloud-build/triggers and +
    #> 2021-11-06 09:19:45 > 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 @@ -361,7 +361,7 @@

    Examp timeout = 1200, create_trigger = "no" ) -

    #> 2021-11-06 08:58:59 > Writing to cloudbuild-tests.yml
    #>
    #> Complete deployment of tests Cloud Build yaml:
    #> Go to https://console.cloud.google.com/cloud-build/triggers and +
    #> 2021-11-06 09:19:45 > 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 2abb88ec..31d5c230 100644 --- a/docs/reference/cr_deploy_pkgdown.html +++ b/docs/reference/cr_deploy_pkgdown.html @@ -298,7 +298,7 @@

    Examp pd <- cr_deploy_pkgdown("MarkEdmondson1234/googleCloudRunner", secret = "my_git_secret", create_trigger = "no") -

    #> 2021-11-06 08:58:59 > Writing to cloudbuild-pkgdown.yml
    #>
    #> Complete deployment of pkgdown Cloud Build yaml:
    #> Go to https://console.cloud.google.com/cloud-build/triggers and +
    #> 2021-11-06 09:19:45 > 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
    #> Ignored files filter (glob): docs/**, inst/**, tests/**
    pd
    #> ==cloudRunnerYaml== diff --git a/docs/reference/cr_email_set.html b/docs/reference/cr_email_set.html index 75eaf06a..9dc8d03f 100644 --- a/docs/reference/cr_email_set.html +++ b/docs/reference/cr_email_set.html @@ -238,7 +238,7 @@

    See a

    Examples

    cr_email_set("myemail@domain.com") -
    #> 2021-11-06 08:59:01 > cloudbuildEmail set to myemail@domain.com
    #> [1] "myemail@domain.com"
    cr_email_get() +
    #> 2021-11-06 09:19:47 > cloudbuildEmail set to myemail@domain.com
    #> [1] "myemail@domain.com"
    cr_email_get()
    #> [1] "myemail@domain.com"
    -
    cr_setup_test()
    - +
    cr_setup_test(
    +  option = c("menu", "all", "docker", "plumber", "r_script", "r_schedule")
    +)
    + +

    Arguments

    + + + + + + +
    option

    Default will use an interactive menu, select other option to run that test without a menu

    See also

    diff --git a/docs/reference/googleCloudRunner.html b/docs/reference/googleCloudRunner.html index 83bdcc9a..fa09f83c 100644 --- a/docs/reference/googleCloudRunner.html +++ b/docs/reference/googleCloudRunner.html @@ -40,8 +40,7 @@ - + @@ -212,13 +211,12 @@

    See website for more details: https://code.markedmondson.me/googleCloudRunner/

    -

    See website for more details: https://code.markedmondson.me/googleCloudRunner/