Skip to main content

Business workflow (trunk-based)

1. In your main branch, create a YAML file named .bitbucket/envs.yaml with the following content:

.bitbucket/envs.yaml
###################################################################################################
########################## ShamanOps pipeline | Bitbucket Pipelines ###############################
###################################################################################################
# Environments:
# full-with-drp (dev/stg/prod/drp) | full (dev/stg/prod) | mid (stg/prod) | minimal (prod)
environments='full'
# Project
projectName='examples'
#-------------------------------------------------------------------------------------------------#
## Features -------------------------------------------------------------------------------------#
# Approvals
shamanopsBusinessApprovers='business-user@customer.com'
shamanopsTechnicalApprovers='technical-user@customer.com'
shamanopsBusinessApproversMinimalProd='1'
shamanopsTechnicalApproversMinimalProd'1'
##################################################################################################
##################################################################################################
warning

Remember to replace the approvers emails business-user@customer.com and technical-user@customer.com with own addresses.

info

This pipeline contains the minimum configuration to be used, to customize the pipeline please check the Customizations section.

2. In your main branch, create a YAML file named bitbucket-pipelines.yml with the following content:

bitbucket-pipelines.yml
###################################################################################################
############################# ShamanOps pipeline | Bitbucket Pipelines ############################
###################################################################################################
pipelines:
custom:
shamanops-pipeline:
import: shamanops:main:shamanops-pipeline
##################################################################################################
##################################################################################################

3. Run your pipeline and enjoy! ✨