Drone plugins > Google Cloud Functions
google_gcf.svg

Google Cloud Functions

by oliver006


The GCF plugin can be used to deploy, list, and delete Google Cloud Functions.

Example

kind: pipeline
name: default

steps:
- name: deploy-cloud-functions
  image: oliver006/drone-gcf
  settings:
    action: deploy
    project: myproject
    runtime: go111
    functions:
      - TransferFileToGCS:
        - trigger: http
          memory: 2048MB
      - HandleEvents:
        - trigger: topic
          trigger_resource: "projects/myproject/topics/mytopic"
          memory: 512MB
          runtime: python37
          source: ./python/src/functions/

Properties

  • token

    stringoptional

    json credentials of the service account to access Google Cloud Functions.

    Secret recommended

    Default: none

  • action

    stringoptional

    can be either deploy, delete, or list.

    Default: none

  • project

    stringoptional

    name of the GCP project.

    Default: the project of the service account

  • runtime

    stringoptional

    runtime of the functions to be deployed. Can be specified once or one a per function basis.

    Default: none

  • functions

    arrayoptional

    list of functions to be deployed, each needs to at least provide a trigger but can also set memory, runtime, and source.

    Default: none