Deploy to Rackspace
How to deploy to Rackspace?
Deploying to Rackspace with Buddy involves setting up a pipeline that allows you to automatically update your Rackspace Cloud Files on every push to branch. You can also run your pipeline manually or schedule recurrent deployments.
Image loading...
Tip
If you are new to Buddy, check out our workflow guides that will tell you how to build, test and deploy your type of application.
Hint
📚 Learn more about Rackspace action features, integrations and alternatives.
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 a branch from which you want to deploy.
Image loading...
Configure Rackspace Container
- Make sure to define the container in your Rackspace account under Storage → Files:
Image loading...
- Click Create Containers and specify container details:
- name
- region (here's a list of available Rackspace regions to choose from)
- type - whether the created container should be private, public, or a static website (in our case, the container should be Private as files copy will be kept in it)
Image loading...
Configure Rackspace deployment
- Look up and click Rackspace on the action list to add it to the pipeline:
Image loading...
Hint
Read how to configure Rackspace with YAML.
- The action has five configuration tabs:
- Transfer – here you define the source path, deployment flags, and files to ignore
- Target – here you select the Rackspace integration, region, container, and 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
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.
- In the Path field, specify whether to deploy the entire filesystem content or a specific folder e.g.
/build
directory:
Image loading...
Hint
The 'Delete files removed in changeset' flag lets you decide whether to delete the files when they are deleted during the deployment. If not selected, the added files will be kept all the time.
Tip
The 'Ignore files using paths and patterns' section lets you exclude certain extensions, files and folders.
- In the Target tab:
- select an existing or add a new Rackspace integration
- choose a region in which the container was created.
Image loading...
If both fields are selected correctly, you should be able to see the created container on the containers list.
Finally, select the target path where the files will be deployed and test the connection to see if the action works correctly.
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.
- When ready, click Add this action to finish configuration.
Success
Congratulations! Your pipeline is ready for Rackspace deployments 🥳
Last modified on Sep 24, 2024