Deploy to Google Cloud Functions

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

Image loading...Example pipeline with Google deployment

Tip
If you are new to Buddy, check out our workflow 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:

Image loading...Creating a new project

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

Image loading...Adding 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

Image loading...Google 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

Image loading...Google 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

Image loading...Google Function Trigger configuration

Last modified on Sep 24, 2024