Deploy to Google Cloud Storage

Buddy turns deployments into a breeze, allowing you to update your assets in the Google Cloud on every push to branch. You can also deploy manually on click, or recurrently on time intervals.

Example pipeline with deployment to Google Cloud StorageExample pipeline with deployment to Google Cloud Storage

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 GCS deployment

Warning
Before you add the action, make sure that your Google service account has proper GCS policies configured.
  1. Look up and click Google Cloud Storage on the action list:

Google Cloud Platform actions in BuddyGoogle Cloud Platform actions in Buddy

  1. The action has four configuration tabs:
  • Transfer – here you define the source path, select the deployment bucket, flags and content encoding, and the files to ignore
  • Target – here you select the Google Cloud integration and define what and where should be deployed
  • 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
Warning
If you are using build actions in your pipeline, make sure to select the Filesystem as the source to deploy artifacts and processed files.

Google Cloud Storage configurationGoogle Cloud Storage configuration

Hint
Buddy's deployment is based on changesets. This means only changed files are deployed, which makes it lightning fast ⚡️. The first deployment is always performed from scratch, unless you set a revision on the server beforehand.
  1. When ready, click Add this action to finish configuration.

  2. (Optional) You can also add the Google CDN action at the end of the pipeline to invalidate Google CDN's cache upon every deployment:

Google CDN configurationGoogle CDN configuration

Success
Congratulations! You have just automated your deployment to Google Cloud Storage. 🥳
Last update:
Sep 17, 2024