Skip to main content

Business workflow (trunk-based)

1. In Azure Repo main branch create a YAML file named azdevops-ci.yml with the following content:

azdevops-ci.yml
###################################################################################################
############################# ShamanOps pipeline | Azure DevOps ###################################
###################################################################################################
trigger:
- main
resources:
repositories:
- repository: automation
type: github
name: shamanops/resources
endpoint: 'shamanops-automation'
ref: main
stages:
- template: azdevops/trunk/stable/base-pipeline.yaml@automation
pool:
name: Azure pipelines
variables:
- template: azdevops/trunk/stable/base-variables.yaml@automation
# Environments:
# full-with-drp (dev/stg/prod/drp) | full (dev/stg/prod) | mid (stg/prod) | minimal (prod)
- name: environments
value: 'full'
# Project
- name: projectName
value: 'examples'
#-------------------------------------------------------------------------------------------------#
## Features -------------------------------------------------------------------------------------#
# Approvals
- name: shamanopsBusinessApprovers
value: 'business-user@customer.com'
- name: shamanopsTechnicalApprovers
value: 'technical-user@customer.com'
- name: shamanopsBusinessApproversMinimalProd
value: '1'
- name: shamanopsTechnicalApproversMinimalProd
value: '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. 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

Pipelines

  • New Pipeline

New Pipeline

  • From Azure Repos

From Azure Repos

  • Select Repository

Select Repository

  • Existing Azure Pipelines YAML file

Existin Azure yaml

  • Select file: azdevops-ci.yaml in main branch

Select file

  • RUN pipeline!

Run pipeline