I've tried asking this before, but re-reading my question it was more like an essay!!
Would anyone be able to give me an example of how to build a pipeline that simply pushes to hosting on a on a branch commit?
Ie when I merge my branch into staging, bitbucket pushes staging to SiteGround hosting for me.
Many thanks, J
Hi James!
Thank you for reaching out to the Atlassian Community!
Reading through your question, my understanding is that you would like Bitbucket to automatically push your changes into your SiteGround hosting services once your branches are deployed to staging.
If that's the case, you can configure your bitbucket-pipelines.yml file to perform the push on staging deployments such as this:
pipelines:
default:
- step:
name: Deploy to SiteGround
deployment: staging
script:
- echo "Deploying to SiteGround"
- git push ssh://user@host:port/path
Configurations made on the SiteGround side of things are a bit outside our support scope, but I found the following article which should help you perform this initial setup and add your private SSH key to your hosting service:
You can also reference our Pipelines documentation on how to add your SSH Public Key to your Pipelines configurations:
Let me know if this helps with your deployment setup!
Cheers,
Mateus T
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.