Hi,
Hope you can help me out. How can I activate deployments (pipelines) using Digital Ocean. I want to be able to deploy easy to production with a deploy button on Bitbucket.
I am seeing that on Pipeline Integrations Digital Ocean isn't on the list.
All help is greatly appreciated.
Hi @rdegregorio,
I am assuming you are trying to set up the deployment features of Pipelines (https://blog.bitbucket.org/2017/12/05/introducing-bitbucket-deployments/) ?
In order to enable this, you simple have to define one of your pipeline steps as a deployment step. You can simple do this by setting the 'deployment' production.
For example:
pipelines:
branches:
master:
- step:
name: build and test
script:
- echo "test script here
- step:
name: Deploy to Staging
deployment: staging
script:
- echo "Successful deployment to Staging"
- step:
name: Deploy to Production
deployment: production
trigger: manual
script:
- echo "Successful deployment to Production"
With regards to the actual script to use, you can take a look at these:
This is the answer that helped me setup automatic deployments when something is committed to the master branch of my repo: https://stackoverflow.com/a/50124202/944054
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.