diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 72f8a50e..9d422f90 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:34Z +last_built: 2020-04-30T19:40Z 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 24e680f5..c7977bd0 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: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) { +
cr_project_set("my-project")
#> ℹ 2020-04-30 19:40:12 > ProjectId set to my-project
#> [1] "my-project"
cr_bucket_set("my-bucket")
#> ℹ 2020-04-30 19:40:12 > 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 d7828192..fec16e17 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: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", +cr_project_set("my-project")
#> ℹ 2020-04-30 19:40:12 > ProjectId set to my-project
#> [1] "my-project"
cr_bucket_set("my-bucket")
#> ℹ 2020-04-30 19:40:12 > 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 4a14503e..0f49d797 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:35:01 > 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:40:13 > 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 85d6ad6d..fd029d23 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:35:02 > ProjectId set to my-project
#> [1] "my-project"
# write from creating a Yaml object +
cr_project_set("my-project")
#> ℹ 2020-04-30 19:40:14 > 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 03e245ab..d29e25a7 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:35:02 > ProjectId set to my-project
#> [1] "my-project"
image <- "gcr.io/my-project/my-image" +
cr_project_set("my-project")
#> ℹ 2020-04-30 19:40:14 > 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 8dac3a03..d67e551b 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:35:02 > ProjectId set to my-project
#> [1] "my-project"
r <- "write.csv(mtcars,file = 'artifact.csv')" +
cr_project_set("my-project")
#> ℹ 2020-04-30 19:40:14 > 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 b30e58a0..a2f3434b 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: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 +
cr_project_set("my-project")
#> ℹ 2020-04-30 19:40:14 > ProjectId set to my-project
#> [1] "my-project"
cr_bucket_set("my-bucket")
#> ℹ 2020-04-30 19:40:14 > 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:35:02 > Image to be built: gcr.io/my-project/my-image:$BUILD_ID
#> ==cloudRunnerYaml== + images = image)
#> ℹ 2020-04-30 19:40:14 > 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 07d97c32..87a8c991 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:35:03 > ProjectId set to my-project
#> [1] "my-project"
bs <- cr_build_yaml( +
cr_project_set("my-project")
#> ℹ 2020-04-30 19:40:14 > 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 6db7cfc9..ab9d676f 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: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", +
cr_project_set("my-project")
#> ℹ 2020-04-30 19:40:15 > ProjectId set to my-project
#> [1] "my-project"
cr_bucket_set("my-bucket")
#> ℹ 2020-04-30 19:40:15 > 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 f4ebb094..bbb8d548 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: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]] +
cr_project_set("my-project")
#> ℹ 2020-04-30 19:40:15 > ProjectId set to my-project
#> [1] "my-project"
cr_bucket_set("my-bucket")
#> ℹ 2020-04-30 19:40:15 > Bucket set to my-bucket
#> [1] "my-bucket"
+cr_buildstep_docker("gcr.io/my-project/my-image")
#> ℹ 2020-04-30 19:40:15 > 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:35:03 > Image to be built: gcr.io/my-project/my-image:$BUILD_ID
#> [[1]] +#>
cr_buildstep_docker("my-image")
#> ℹ 2020-04-30 19:40:15 > 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:35:03 > 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:40:15 > 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 e48051fe..5059826f 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: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_project_set("my-project")
#> ℹ 2020-04-30 19:40:15 > ProjectId set to my-project
#> [1] "my-project"
cr_bucket_set("my-bucket")
#> ℹ 2020-04-30 19:40:15 > 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 36abb128..f3c3cc02 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: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" +
cr_project_set("my-project")
#> ℹ 2020-04-30 19:40:16 > ProjectId set to my-project
#> [1] "my-project"
cr_bucket_set("my-bucket")
#> ℹ 2020-04-30 19:40:16 > 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 6c86f75e..928bb7e6 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: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"
+
cr_project_set("my-project")
#> ℹ 2020-04-30 19:40:16 > ProjectId set to my-project
#> [1] "my-project"
cr_bucket_set("my-bucket")
#> ℹ 2020-04-30 19:40:16 > Bucket set to my-bucket
#> [1] "my-bucket"
cr_region_set("europe-west1")
#> ℹ 2020-04-30 19:40:16 > 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:35:04 > Image to be built: gcr.io/my-project/my-image-for-cloudrun:$BUILD_ID
#> ==cloudRunnerYaml== + )
#> ℹ 2020-04-30 19:40:16 > 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 ddee2b6e..eeb1fca9 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: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_project_set("my-project")
#> ℹ 2020-04-30 19:40:16 > ProjectId set to my-project
#> [1] "my-project"
cr_bucket_set("my-bucket")
#> ℹ 2020-04-30 19:40:16 > 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 92761d61..158f51cb 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: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"
+
cr_project_set("my-project")
#> ℹ 2020-04-30 19:40:17 > ProjectId set to my-project
#> [1] "my-project"
cr_bucket_set("my-bucket")
#> ℹ 2020-04-30 19:40:17 > 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 cfc0a79c..24d9809c 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: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", +
cr_project_set("my-project")
#> ℹ 2020-04-30 19:40:17 > ProjectId set to my-project
#> [1] "my-project"
cr_bucket_set("my-bucket")
#> ℹ 2020-04-30 19:40:17 > 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_packagetests.html b/docs/reference/cr_deploy_packagetests.html index e2549459..2bb94118 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: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 +pd <- cr_deploy_packagetests()
#> ℹ 2020-04-30 19:40:18 > 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: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 +)
#> ℹ 2020-04-30 19:40:18 > 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 250e8a86..fad7a1ab 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: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 +pd <- cr_deploy_pkgdown(secret = "my_git_secret")
#> ℹ 2020-04-30 19:40:19 > 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==