rename Cloud Run Deploy to Service
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
This commit is contained in:
parent
6451e2e40d
commit
293ee0680f
@ -9,8 +9,8 @@ TestConfig: gcpConfig: gcp.#Config & {
|
|||||||
region: "us-west2"
|
region: "us-west2"
|
||||||
}
|
}
|
||||||
|
|
||||||
TestCloudRun: deploy: cloudrun.#Deploy & {
|
TestCloudRun: deploy: cloudrun.#Service & {
|
||||||
config: TestConfig.gcpConfig
|
config: TestConfig.gcpConfig
|
||||||
serviceName: "cloudrun-test"
|
name: "cloudrun-test"
|
||||||
image: "gcr.io/dagger-ci/cloudrun-test:latest"
|
image: "gcr.io/dagger-ci/cloudrun-test:latest"
|
||||||
}
|
}
|
||||||
|
@ -5,13 +5,13 @@ import (
|
|||||||
"dagger.io/gcp"
|
"dagger.io/gcp"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Deploy deploys a Cloud Run service based on provided GCR image
|
// Service deploys a Cloud Run service based on provided GCR image
|
||||||
#Deploy: {
|
#Service: {
|
||||||
// GCP Config
|
// GCP Config
|
||||||
config: gcp.#Config
|
config: gcp.#Config
|
||||||
|
|
||||||
// service name
|
// service name
|
||||||
serviceName: string @dagger(input)
|
name: string @dagger(input)
|
||||||
|
|
||||||
// GCR image ref
|
// GCR image ref
|
||||||
image: string @dagger(input)
|
image: string @dagger(input)
|
||||||
@ -39,7 +39,7 @@ import (
|
|||||||
"""#,
|
"""#,
|
||||||
]
|
]
|
||||||
env: {
|
env: {
|
||||||
SERVICE_NAME: serviceName
|
SERVICE_NAME: name
|
||||||
PLATFORM: platform
|
PLATFORM: platform
|
||||||
REGION: config.region
|
REGION: config.region
|
||||||
IMAGE: image
|
IMAGE: image
|
||||||
|
Reference in New Issue
Block a user