Deploy to DigitalOcean Spaces
Buddy turns deployments into a breeze, allowing you to update assets in your DigitalOcean buckets on every push to branch. You can also deploy manually on click, or recurrently on time intervals.
Example pipeline with DigitalOcean Spaces deployment and cache invalidation
đź“š Learn more about DigitalOcean Spaces action features, integrations and alternatives.
Get DigitalOcean Access Key
- Log in to your DigitalOcean account and go to API → Tokens/Keys.
- Generate a new Spaces access key and copy its value and secret:
Getting DO Access Token
Configure pipeline in Buddy
- Create a new project in Buddy and select your Git provider:
Creating a new project
- Add a new pipeline and configure the details: name, trigger mode, and the branch from which you want to deploy.
Adding a new pipeline
Configure DigitalOcean Spaces deployment
- Look up DigitalOcean on the action list and click Spaces to add it to the pipeline:
DigitalOcean actions
- The action has four configuration tabs:
- Transfer – here you define the source path, deployment flags, file encoding, and cache settings
- Target – here you select the DigitalOcean Spaces integration and define region, bucket ID, and bucket path
- 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
DigitalOcean Spaces configuration
When ready, click Add this action to finish configuration.
(Optional) You can also add the Spaces CDN action at the end of the pipeline to automatically clear the selected Spaces endpoint after the deployment:
DigitalOcean Spaces CDN configuration
Last modified on December 12, 2023