Developers workflow (pre-trunk-based)
- Cloud Runners
- Self-Hosted Runners
1. In Azure Repo pre-trunk-based branch create a YAML file named azdevops-ci.yml with the following content:
###################################################################################################
############################# ShamanOps pipeline | Azure DevOps ###################################
###################################################################################################
trigger:
- pre-trunk-based
resources:
repositories:
- repository: automation
type: github
name: shamanops/resources
endpoint: 'shamanops-automation'
ref: main
stages:
- template: azdevops/pretrunk/stable/base-pipeline.yaml@automation
pool:
name: Azure pipelines
variables:
- template: azdevops/pretrunk/stable/base-variables.yaml@automation
# Project
- name: projectName
value: 'examples'
# Pre-trunk sets
- name: exposeEnabled
value: 'true'
- name: appInternalPort
value: '80'
#-------------------------------------------------------------------------------------------------#
## Features -------------------------------------------------------------------------------------#
- name: appDaysToLive
value: '0'
#-------------------------------------------------------------------------------------------------#
###################################################################################################
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. Create a pipeline and run it from the file created in step 1:
- Go to pipelines
- New Pipeline
- From Azure Repos
- Select Repository
- Existing Azure Pipelines YAML file
- Select file: azdevops-ci.yaml in main branch
- RUN pipeline!
1. In Azure Repo pre-trunk-based branch create a YAML file named azdevops-ci.yml with the following content:
###################################################################################################
############################# ShamanOps pipeline | Azure DevOps ###################################
###################################################################################################
trigger:
- pre-trunk-based
resources:
repositories:
- repository: automation
type: github
name: shamanops/resources
endpoint: 'shamanops-automation'
ref: main
stages:
- template: azdevops/pretrunk/stable/base-pipeline.yaml@automation
pool:
name: onpremise
variables:
- template: azdevops/pretrunk/stable/base-variables.yaml@automation
# Project
- name: projectName
value: 'examples'
# Pre-trunk sets
- name: exposeEnabled
value: 'true'
- name: appInternalPort
value: '80'
#-------------------------------------------------------------------------------------------------#
## Features -------------------------------------------------------------------------------------#
- name: appDaysToLive
value: '0'
#-------------------------------------------------------------------------------------------------#
###################################################################################################
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. Go to the shamanops project and grant the necessary permissions so it can use the 3 service connections you've created. (Find out how to do it here)
3. Create a pipeline and run it from the file created in step 1:
- Go to pipelines
- New Pipeline
- From Azure Repos
- Select Repository
- Existing Azure Pipelines YAML file
- Select file: azdevops-ci.yaml in main branch
- RUN pipeline!