Last active
November 6, 2020 13:37
-
-
Save viktors-telle/06c736d8a5b3912382bc47786b86d7dc to your computer and use it in GitHub Desktop.
Azure DevOps deployment jobs example.
This file contains 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
jobs: | |
- deployment: dev | |
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/dev') | |
displayName: Deploy to dev | |
environment: dev | |
variables: | |
- name: environment | |
value: dev | |
- group: ${{ format('terraform-{0}', variables.environment) }} | |
- ${{ if ne(parameters.variable_group_name, '') }}: | |
- group: ${{ format('{0}-{1}', parameters.variable_group_name, variables.environment) }} | |
strategy: | |
runOnce: | |
deploy: | |
steps: | |
- template: deployment-job-steps.yaml | |
parameters: | |
container_name: ${{ parameters.container_name }} | |
container_key: ${{ parameters.container_key }} | |
variable_group_name: ${{ parameters.variable_group_name }} | |
environment: $(environment) | |
tf_plan_name: ${{ parameters.tf_plan_name }} | |
working_directory: ${{ parameters.working_directory }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment