Last active
November 13, 2019 12:47
-
-
Save JamesDLD/d962f4d8971bf55622a799c1c1202393 to your computer and use it in GitHub Desktop.
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
- stage: Deliver | |
dependsOn: Deploy | |
jobs: | |
# track deployments on the environment | |
- deployment: Terraform_Destroy | |
displayName: Terraform Destroy - Script ok, now deleting the resources | |
pool: | |
vmImage: $(vmImageName) | |
environment: "Terraform_Destroy" | |
strategy: | |
# default deployment strategy | |
runOnce: | |
deploy: | |
steps: | |
- task: DownloadSecureFile@1 | |
displayName: Download secure file $(backend_main_secret_file_id1) | |
inputs: | |
secureFile: $(backend_main_secret_file_id1) | |
- template: terraform.yml@Yaml_Templates | |
parameters: | |
version: $(terraform_version) | |
artifact_path: $(Pipeline.Workspace)/$(artifact_name) | |
package_name: "aks-k8s" | |
terraform_destroy: true | |
main_secret_file_id: $(backend_main_secret_file_id1) | |
main_file_path: "variable/main-jdld.tfvars" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment