Update Cloud Run docs
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
This commit is contained in:
parent
31714de4e3
commit
25ff825f74
@ -61,27 +61,27 @@ src: dagger.#Artifact & dagger.#Input
|
||||
imageRef: string & dagger.#Input
|
||||
|
||||
image: docker.#Build & {
|
||||
source: src
|
||||
source: src
|
||||
}
|
||||
|
||||
gcpConfig: gcp.#Config
|
||||
|
||||
creds: gcr.#Credentials & {
|
||||
config: gcpConfig
|
||||
config: gcpConfig
|
||||
}
|
||||
|
||||
push: docker.#Push & {
|
||||
target: imageRef
|
||||
source: image
|
||||
auth: {
|
||||
username: creds.username
|
||||
secret: creds.secret
|
||||
}
|
||||
target: imageRef
|
||||
source: image
|
||||
auth: {
|
||||
username: creds.username
|
||||
secret: creds.secret
|
||||
}
|
||||
}
|
||||
|
||||
deploy: cloudrun.#Service & {
|
||||
config: gcpConfig
|
||||
image: push.ref
|
||||
config: gcpConfig
|
||||
image: push.ref
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -14,14 +14,15 @@ Service deploys a Cloud Run service based on provided GCR image
|
||||
|
||||
### cloudrun.#Service Inputs
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------------- |:-------------: |:-------------: |
|
||||
|*config.region* | `string` |GCP region |
|
||||
|*config.project* | `string` |GCP project |
|
||||
|*config.serviceKey* | `dagger.#Secret` |GCP service key |
|
||||
|*name* | `string` |service name |
|
||||
|*image* | `string` |GCR image ref |
|
||||
|*platform* | `*"managed" \| string` |Cloud Run platform |
|
||||
| Name | Type | Description |
|
||||
| ------------- |:-------------: |:-------------: |
|
||||
|*config.region* | `string` |GCP region |
|
||||
|*config.project* | `string` |GCP project |
|
||||
|*config.serviceKey* | `dagger.#Secret` |GCP service key |
|
||||
|*name* | `string` |Cloud Run service name |
|
||||
|*image* | `string` |GCR image ref |
|
||||
|*platform* | `*"managed" \| string` |Cloud Run platform |
|
||||
|*port* | `*"80" \| string` |Cloud Run service exposed port |
|
||||
|
||||
### cloudrun.#Service Outputs
|
||||
|
||||
|
Reference in New Issue
Block a user