Deploy Laravel for Bitbucket Pipelines
View on GitHub

Step 2: Choose which branch to deploy

By default, a commit to the main branch will trigger a deployment. If you want to deploy a different branch, edit the bitbucket-pipelines.yml file and change every occurrence of main to your desired branch.

If you want to deploy to multiple environments you can copy and paste the pipeline definition that is at the bottom of the yaml file.