Deploy to Google Cloud Functions

Buddy lets you automatically deploy and trigger Google functions on the serverless compute platform on every push to branch.

Example pipeline with Google deploymentExample pipeline with Google deployment

Tip
If you are new to Buddy, check out our quickstart guides that will tell you how to build, test and deploy your type of application.

Configure pipeline in Buddy

  1. Create a new project in Buddy and select your Git provider:

Creating a new projectCreating a new project

  1. Add a new pipeline and configure the details: name, trigger mode, and branch from which you want to deploy.

Adding a new pipelineAdding a new pipeline

Configure Google deployment

Warning
Before you add the actions, make sure that your Google service account has proper Google function permissions set.

Buddy offers two Function actions:

  • Deploy: deploys files from the pipeline's filesystem to Google Cloud Functions
  • Trigger: triggers already deployed Google Function

Google actionsGoogle actions

Google Function Deploy

This action has four configuration tabs:

  • Transfer – here you set the repository path and files to ignore (optional)
  • Variables – here you can view the variables created by your Google integration, and create your own if required
  • Conditions – here you configure the trigger conditions for which the action will run
  • Options – here you define the action's name and behavior on failure and timeout

Google Function Deploy configurationGoogle Function Deploy configuration

Google Function Trigger

This action is very similar to Google Deploy in terms of configuration, with key settings moved to the Trigger tab:

  • Trigger – here you select the Google Cloud integration, region, and target function, and define the payload, client context, and invocation options

Google Function Trigger configurationGoogle Function Trigger configuration

Last update:
Sep 17, 2024