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

how to choose which environment to deploy to?

gbrown May 29, 2020

I've setup my bitbucket pipelines yaml to deploy my application to dev instance in AWS using code deploy. I have staging and prod environments also. How do I configure my pipeline for the same app so that I can chose which environment to deploy to after a commit?

1 answer

1 accepted

3 votes
Answer accepted
ABEL MASILA May 30, 2020

Hi @gbrown .

You need to configure  a section for all branch-specific build pipelines.

for instance, for prod, have a specific master branch pipeline section and for staging, you'd setup develop branch pipeline section. 

For more info, check this out. https://www.atlassian.com/continuous-delivery/tutorials/continuous-delivery-tutorial

 https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html#Configurebitbucket-pipelines.yml-ci_branchesbranches(optional)

 

gbrown May 30, 2020

Thanks @ABEL MASILA   I found the solution after I posted the question but did not know how to remove my question. Thank you for the tutorial link. I am new to this and it is very helpful.

ABEL MASILA May 30, 2020

You're welcome. 

Suggest an answer

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

Atlassian Community Events