Deploy to DigitalOcean

Buddy turns deployments into a breeze, allowing you to update your DigitalOcean droplets on every push to branch. You can also deploy manually on click, or recurrently on time intervals.

Example pipeline with deployment to a DigitalOcean dropletExample pipeline with deployment to a DigitalOcean droplet

Tip
If you are new to Buddy, check out our quickstart guides that will tell you how to build and test your application before the deployment.
Hint

📚 Learn more about DigitalOcean Droplet action features, integrations and alternatives.

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 DigitalOcean Droplet deployment

  1. Look up DigitalOcean and click Droplet on the action list to add it to the pipeline:

DigitalOcean actionsDigitalOcean actions

  1. The action has four configuration tabs:
  • Transfer – here you define the source path, select the droplet, and set deployment flags
  • Target – here you select the DigitalOcean 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.

DigitalOcean configurationDigitalOcean 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 in the Options tab.
  1. When ready, click Add this action to finish configuration.
Success
Congratulations! You have just automated your deployment to the DigitalOcean droplet. 🥳
Last update:
Sep 17, 2024