Deploy to DigitalOcean Spaces
How to deploy to DigitalOcean Spaces?
To start deploying to DigitalOcean Spaces, configure a pipeline in Buddy and create Spaces Object Storage, where your assets will be automatically updated. You can also configure the pipeline to run only on click, or recurrently.
Image loading...Example pipeline with DigitalOcean Spaces deployment for database backup
Configure pipeline in Buddy
- Create a new project in Buddy and select your Git provider:
Image loading...Creating new project
- Add a new pipeline and configure the details: name, trigger mode, and the branch from which you want to deploy.
Image loading...Adding new pipeline
Create Spaces Object Storage
DigitalOcean Spaces Object Storage is a scalable and secure service for storing data in the cloud. It allows you to store and manage large amounts of unstructured data in containers called "buckets". To create a bucket:
- Go to Spaces Object Storage in the DigitalOcean panel.
- Click Create spaces Bucket:
Image loading...
- Provide a name for your bucket, select a datacenter region, a project and decide whether to enable CDN:
Image loading...Creating Spaces Bucket
By default, your bucket does not have public access, it is only accessible to the specific team assigned to the account.
Once the Spaces Bucket is configured, you can add and configure the deployment action.
Configure DigitalOcean Spaces deployment
- Look up DigitalOcean Spaces on the action list to add it to the pipeline:
Image loading...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
- Variables – here you can add and modify environment variables required by your workflow
- 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...DigitalOcean Spaces action configuration
When ready, click Add this action to finish configuration.
(Optional) You can also add the DigitalOcean Spaces CDN action at the end of the pipeline to automatically purge the cache in selected Spaces bucket after the deployment.
Image loading...DigitalOcean Spaces CDN configuration
Congratulations! You have just automated your deployment to DigitalOcean Spaces and you can enjoy the benefits that Buddy provides to your workflow 🥳
đź“š Learn more about DigitalOcean Spaces action features, integrations and alternatives.
Sep 24, 2024