Skip to main content

Developers workflow (pre-trunk-based)

1. In your pre-trunk-based 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/pretrunk/base-stable.yaml'
variables:
# Project
projectName: 'examples'
# Pre-trunk sets
exposeEnabled: 'true'
appInternalPort: '80'
#-------------------------------------------------------------------------------------------------#
## Features -------------------------------------------------------------------------------------#
appDaysToLive: '0'
#-------------------------------------------------------------------------------------------------#
###################################################################################################
info

By default, pre-trunk-based applications are configured to not be deleted.
To define how many days the application should live, you must modify the field appDaysToLive in Features section.

2. Commit and enjoy! ✨