Created
September 24, 2020 06:14
-
-
Save leriksen/6ee8bc5b95c0da556089269b1c37940e to your computer and use it in GitHub Desktop.
conditional inclusion of stage templates in azure devops yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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