From 293ee0680fb31fa0db8eeadcc9ed46d7cdde1e96 Mon Sep 17 00:00:00 2001 From: Tihomir Jovicic Date: Mon, 21 Jun 2021 11:36:01 +0200 Subject: [PATCH] rename Cloud Run Deploy to Service Signed-off-by: Tihomir Jovicic --- stdlib/.dagger/env/google-cloudrun/plan/main.cue | 8 ++++---- stdlib/gcp/cloudrun/main.cue | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/stdlib/.dagger/env/google-cloudrun/plan/main.cue b/stdlib/.dagger/env/google-cloudrun/plan/main.cue index dc1b428f..82c46025 100644 --- a/stdlib/.dagger/env/google-cloudrun/plan/main.cue +++ b/stdlib/.dagger/env/google-cloudrun/plan/main.cue @@ -9,8 +9,8 @@ TestConfig: gcpConfig: gcp.#Config & { region: "us-west2" } -TestCloudRun: deploy: cloudrun.#Deploy & { - config: TestConfig.gcpConfig - serviceName: "cloudrun-test" - image: "gcr.io/dagger-ci/cloudrun-test:latest" +TestCloudRun: deploy: cloudrun.#Service & { + config: TestConfig.gcpConfig + name: "cloudrun-test" + image: "gcr.io/dagger-ci/cloudrun-test:latest" } diff --git a/stdlib/gcp/cloudrun/main.cue b/stdlib/gcp/cloudrun/main.cue index ced19ca7..abae659b 100644 --- a/stdlib/gcp/cloudrun/main.cue +++ b/stdlib/gcp/cloudrun/main.cue @@ -5,13 +5,13 @@ import ( "dagger.io/gcp" ) -// Deploy deploys a Cloud Run service based on provided GCR image -#Deploy: { +// Service deploys a Cloud Run service based on provided GCR image +#Service: { // GCP Config config: gcp.#Config // service name - serviceName: string @dagger(input) + name: string @dagger(input) // GCR image ref image: string @dagger(input) @@ -39,7 +39,7 @@ import ( """#, ] env: { - SERVICE_NAME: serviceName + SERVICE_NAME: name PLATFORM: platform REGION: config.region IMAGE: image