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
|
imageRef: string & dagger.#Input
|
||||||
|
|
||||||
image: docker.#Build & {
|
image: docker.#Build & {
|
||||||
source: src
|
source: src
|
||||||
}
|
}
|
||||||
|
|
||||||
gcpConfig: gcp.#Config
|
gcpConfig: gcp.#Config
|
||||||
|
|
||||||
creds: gcr.#Credentials & {
|
creds: gcr.#Credentials & {
|
||||||
config: gcpConfig
|
config: gcpConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
push: docker.#Push & {
|
push: docker.#Push & {
|
||||||
target: imageRef
|
target: imageRef
|
||||||
source: image
|
source: image
|
||||||
auth: {
|
auth: {
|
||||||
username: creds.username
|
username: creds.username
|
||||||
secret: creds.secret
|
secret: creds.secret
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy: cloudrun.#Service & {
|
deploy: cloudrun.#Service & {
|
||||||
config: gcpConfig
|
config: gcpConfig
|
||||||
image: push.ref
|
image: push.ref
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -14,14 +14,15 @@ Service deploys a Cloud Run service based on provided GCR image
|
|||||||
|
|
||||||
### cloudrun.#Service Inputs
|
### cloudrun.#Service Inputs
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
| ------------- |:-------------: |:-------------: |
|
| ------------- |:-------------: |:-------------: |
|
||||||
|*config.region* | `string` |GCP region |
|
|*config.region* | `string` |GCP region |
|
||||||
|*config.project* | `string` |GCP project |
|
|*config.project* | `string` |GCP project |
|
||||||
|*config.serviceKey* | `dagger.#Secret` |GCP service key |
|
|*config.serviceKey* | `dagger.#Secret` |GCP service key |
|
||||||
|*name* | `string` |service name |
|
|*name* | `string` |Cloud Run service name |
|
||||||
|*image* | `string` |GCR image ref |
|
|*image* | `string` |GCR image ref |
|
||||||
|*platform* | `*"managed" \| string` |Cloud Run platform |
|
|*platform* | `*"managed" \| string` |Cloud Run platform |
|
||||||
|
|*port* | `*"80" \| string` |Cloud Run service exposed port |
|
||||||
|
|
||||||
### cloudrun.#Service Outputs
|
### cloudrun.#Service Outputs
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user