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...
Configure pipeline in Buddy
- Create a new project in Buddy and select your Git provider:
Image loading...
- Add a new pipeline and configure the details: name, trigger mode, and the branch from which you want to deploy.
Image loading...
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...
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...
- 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...
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...
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.
Last modified on Sep 24, 2024