Drone plugins > Google Cloud Run
cloud_run.svg

Google Cloud Run

by kameshsampath


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

    stringrequired

    The Google Cloud Service Account JSON that has required permissions to create, update and delete Google Cloud Run services .

    Secret recommended

    Default: none

  • project

    stringrequired

    The Google project where the Google Cloud Run service will be deployed.

    Secret recommended

    Default: none

  • region

    stringrequired

    The Google Cloud region e.g asia-south1 where the Google Cloud Run service will be deployed.

    Secret recommended

    Default: none

  • service_name

    stringrequired

    The name of the Google Cloud Run service.

    Default: none

  • image

    stringrequired

    The container image that will be used for the service.

    Default: none

  • delete

    booleanoptional

    If the service needs to be deleted.

    Default: none

  • allow_unauthenticated

    booleanoptional

    Allow public access to the service.

    Default: none