Skip to main content

Business workflow (trunk-based)

1. In your main branch create a YAML file named .gitlab-ci.yml with the following content:

.gitlab-ci.yml
###################################################################################################
############################### ShamanOps pipeline | GitLab CI ####################################
###################################################################################################
include:
- remote: 'https://raw.githubusercontent.com/shamanops/resources/main/gitlab/trunk/base-stable.yaml'
variables:
# 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. Commit and enjoy! ✨