Skip to content

Commit

Permalink
fixing git checkout, remove dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
KyMidd committed Jan 7, 2020
1 parent 12e69e5 commit ef58f1a
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions Terraform-YML-Pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,26 @@
# Terraform release pipeline
variables:
tf_directory: '$(System.DefaultWorkingDirectory)/terraform/envA'
secure_file_name: 'terraform-secure-file.auto.tfvars'
terraform_version: '0.12.18'
pool: 'AWS-Pool'

# Release instructions
stages:
- stage: Terraform_Plan
jobs:
- deployment: Terraform_Plan
displayName: Terraform Plan
pool: $(pool)
continueOnError: 'false'
environment: 'TerraformPlan_Environment'
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
displayName: 'Download secure file'
inputs:
secureFile: $(secure_file_name)

- task: CopyFiles@2
displayName: 'Stage secure files'
inputs:
SourceFolder: '$(Agent.TempDirectory)'
Contents: '*.tfvars'
TargetFolder: $(tf_directory)

- task: Bash@3
displayName: 'Terraform Init'
inputs:
Expand Down Expand Up @@ -63,7 +49,6 @@ stages:
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'))
Expand All @@ -72,23 +57,12 @@ stages:
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
displayName: 'Download secure file'
inputs:
secureFile: $(secure_file_name)

- task: CopyFiles@2
displayName: 'Stage secure files'
inputs:
SourceFolder: '$(Agent.TempDirectory)'
Contents: '*.tfvars'
TargetFolder: $(tf_directory)

- task: Bash@3
displayName: 'Terraform Init'
inputs:
Expand Down

0 comments on commit ef58f1a

Please sign in to comment.