diff --git a/terraform/mst/azure-pipelines.yml b/terraform/mst/azure-pipelines.yml index 90c1b67f..5c220d1a 100644 --- a/terraform/mst/azure-pipelines.yml +++ b/terraform/mst/azure-pipelines.yml @@ -1,31 +1,5 @@ -trigger: - branches: - include: - - dev - - test - - prod - tags: - include: - - 20??.??.?*-rc?* - - 20??.??.?* - # only run for changes to Terraform files - paths: - include: - - terraform/* - -pr: - branches: - include: - - "*" - paths: - include: - - terraform/* - -pool: - vmImage: ubuntu-latest - -stages: - - template: ../pipeline/deploy.yml - parameters: - resource_group: mst-courtesy-cards-eligibility-terraform - storage_account: mstcourtesycardstf +extends: + template: ../pipeline/deploy.yml + parameters: + resource_group: mst-courtesy-cards-eligibility-terraform + storage_account: mstcourtesycardstf diff --git a/terraform/pipeline/deploy.yml b/terraform/pipeline/deploy.yml index bf89e83f..5ac0c175 100644 --- a/terraform/pipeline/deploy.yml +++ b/terraform/pipeline/deploy.yml @@ -4,6 +4,32 @@ parameters: - name: storage_account type: string +trigger: + branches: + include: + - dev + - test + - prod + tags: + include: + - 20??.??.?*-rc?* + - 20??.??.?* + # only run for changes to Terraform files + paths: + include: + - terraform/* + +pr: + branches: + include: + - "*" + paths: + include: + - terraform/* + +pool: + vmImage: ubuntu-latest + stages: - stage: TerraformPlan jobs: