We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13ca24b commit b2c7d97Copy full SHA for b2c7d97
1 file changed
base-infrastructure/azure-pipelines.yml
@@ -23,9 +23,18 @@ jobs:
23
displayName: "Checkout go-deploy"
24
path: go-deploy
25
26
+ - task: PowerShell@2
27
+ name: GetTerraformVersion
28
+ inputs:
29
+ targetType: 'inline'
30
+ script: |
31
+ $version = Get-Content .terraform-version | Select-Object -First 1
32
+ Write-Host "Terraform version found: $version"
33
+ # Set pipeline variable
34
+ Write-Host "##vso[task.setvariable variable=terraformVersion]$version"
35
- task: "TerraformInstaller@1"
36
inputs:
- terraformVersion: '1.11.3'
37
+ terraformVersion: '$(terraformVersion)'
38
39
# Deploy Terraform managed infrastructure to staging
40
- script: chmod +x $(Pipeline.Workspace)/go-deploy/base-infrastructure/scripts/setup-infra.sh
0 commit comments