Drone plugins > Google Cloud Run
Plugin to build and manage Google Cloud Run services.
Example
kind: pipeline
type: docker
name: deploy-service
environment: &buildEnv
SERVICE_ACCOUNT_JSON:
from_secret: SERVICE_ACCOUNT_JSON
GOOGLE_CLOUD_PROJECT:
from_secret: GOOGLE_CLOUD_PROJECT
GOOGLE_CLOUD_REGION:
from_secret: GOOGLE_CLOUD_REGION
steps:
- name: deploy the service
image: docker.io/kameshsampath/drone-gcloud-run
settings:
service_account_json: ${SERVICE_ACCOUNT_JSON}
project: ${GOOGLE_CLOUD_PROJECT}
region: ${GOOGLE_CLOUD_REGION}
service_name: my-service
image: asia-south1-docker.pkg.dev/${GOOGLE_CLOUD_PROJECT}/greeter
environment: *buildEnv
Properties
service_account_json
stringrequiredThe Google Cloud Service Account JSON that has required permissions to create, update and delete Google Cloud Run services .
Secret recommendedDefault: none
project
stringrequiredThe Google project where the Google Cloud Run service will be deployed.
Secret recommendedDefault: none
region
stringrequiredThe Google Cloud region e.g asia-south1 where the Google Cloud Run service will be deployed.
Secret recommendedDefault: none
service_name
stringrequiredThe name of the Google Cloud Run service.
Default: none
image
stringrequiredThe container image that will be used for the service.
Default: none
delete
booleanoptionalIf the service needs to be deleted.
Default: none
allow_unauthenticated
booleanoptionalAllow public access to the service.
Default: none