Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Dev and Prod deploy from same branch

Aurimas N_ April 24, 2024

Hi, I want to implement following pattern for build pipeline:

merge to main:

stage1: build and deploy to DEV env

stage2: request approvals from specific people and deploy to PROD env

 

I don't see a way "enable required approvals" for deployment to specific env, what would be the closest equivalent for this in bitbucket pipelines?

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 14, 2024

Hi Aurimas,

I'm afraid that there is no such concept as approval for a certain stage or a step of a Pipelines build. The closest thing would be a manual trigger and deployment permissions:

With a manual trigger, someone will need to manually trigger the second stage. If the repo belongs to a workspace on the Premium plan and you define a deployment environment for that stage, you can make use of the option Only allow admins to deploy to this environment (from Repository settings > Deployments > select the deployment environment you use for this stage) so that only admins can trigger the stage.

Please feel free to reach out if you have any questions.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events