Drone plugins > Google Cloud Functions
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
stringoptionaljson credentials of the service account to access Google Cloud Functions.
Secret recommendedDefault: none
action
stringoptionalcan be either deploy, delete, or list.
Default: none
project
stringoptionalname of the GCP project.
Default: the project of the service account
runtime
stringoptionalruntime of the functions to be deployed. Can be specified once or one a per function basis.
Default: none
functions
arrayoptionallist of functions to be deployed, each needs to at least provide a trigger but can also set memory, runtime, and source.
Default: none