DigitalOcean integration

What is DigitalOcean?

DigitalOcean is a cloud infrastructure provider that helps developers deploy, manage, and scale their applications. It integrates with various popular apps and services including Docker and Kubernetes.

The service offers features such as configurable virtual machines called Droplets, storage solutions and load balancing capabilities.

Integrating DO with Buddy lets you create pipeline workflows to automate repetitive tasks. Pre-configured actions allow you to build, test and deploy applications to your DigitalOcean droplets whenever a change is pushed to the repository.

You can also expand your pipeline by adding monitoring or test actions that check your website’s performance and help you to identify any security vulnerabilities:

Image loading...Pipeline example for DigitalOcean

Setting up DigitalOcean integration

  1. Navigate to the Integrations tab and click New integration.
  2. Look up and click DigitalOcean (you can find it in the IaaS section):

Image loading...DigitalOcean integration selection

  1. The configuration window will show up:

Image loading...DigitalOcean integration configuration

Here you have to provide the integration name and select the authorization method:

Hint
You can adjust the privacy settings of your integration (i.e. who can use it and where) in the Sharing tab.

OAuth authorization

  1. In the integration configuration window, select OAuth as authorization method and click Start OAuth authorization:

Image loading...DigitalOcean OAuth authorization configuration

  1. Log in to your DigitalOcean account and authorize Buddy to access your account:

Image loading...Permission requirements screen

Personal Access Token authorization

  1. In the integration configuration window, select Access Token as authorization method and click Generate Token button:

Image loading...DigitalOcean access token authorization configuration

  1. Once you're redirected to your DigitalOcean account, a window to generate a new token will appear. Provide the token name and select permission scopes:

Image loading...Generating DigitalOcean access token

  1. Click Generate Token and copy the displayed secret:

Image loading...DigitalOcean personal access token

  1. Paste the secret in the Access Token field in Buddy and click Add a new integration to connect DigitalOcean with Buddy.

How do I deploy in DigitalOcean?

To deploy your application to DigitalOcean, follow these steps:

  1. Create a project in Buddy and attach e.g. your GitHub repository to it.
  2. Add and configure a new pipeline.
  3. Select the DigitalOcean Droplet action from the actions roster and configure action details. You can authenticate to your droplet using either a password, SSH key, or SSH key & password.
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.

Make sure to check out our other dedicated DO actions, e.g. DigitalOcean CLI, allowing you to manage your droplets and other resources directly from Buddy app platform, or DigitalOcean Spaces.

Hint

đź“š Learn more about DigitalOcean Droplet action features, integrations and alternatives.

Last modified on Sep 23, 2024