Skip to content

Instantly share code, notes, and snippets.

@leriksen
Created September 24, 2020 06:14
Show Gist options
  • Save leriksen/6ee8bc5b95c0da556089269b1c37940e to your computer and use it in GitHub Desktop.
Save leriksen/6ee8bc5b95c0da556089269b1c37940e to your computer and use it in GitHub Desktop.
conditional inclusion of stage templates in azure devops yaml
# only run stage if running from master branch
stages:
- ${{ if eq(variables['Build.SourceBranchName'], 'master') }}:
- template: deployment/azure_devops_templates/stages.yaml
parameters:
environment: prd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment