Skip to content

Commit

Permalink
refactor(pipeline): move more config into template
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran committed Oct 5, 2023
1 parent f94534b commit 31749fe
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
36 changes: 5 additions & 31 deletions terraform/mst/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions terraform/pipeline/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 31749fe

Please sign in to comment.