Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Last active January 7, 2020 19:33
Show Gist options
  • Select an option

  • Save KyMidd/a4adb0852a5b86ab6736ab74b5ae8ec0 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/a4adb0852a5b86ab6736ab74b5ae8ec0 to your computer and use it in GitHub Desktop.
- stage: Terraform_Apply
jobs:
- deployment: Terraform_Apply
displayName: Terraform Apply
pool: $(pool)
continueOnError: 'false'
# Run this stage if previous stage(s) succeeded and build reason ISN'T a pull request
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
environment: 'YamlTerraformApplyEnvironment'
strategy:
runOnce:
deploy:
steps:
- checkout: self
- task: charleszipp.azure-pipelines-tasks-terraform.azure-pipelines-tasks-terraform-installer.TerraformInstaller@0
displayName: 'Install Terraform'
inputs:
terraformVersion: $(terraform_version)
- task: DownloadSecureFile@1
(etc.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment