Skip to content

Commit 81976d1

Browse files
authored
Feat: SBMTD infra pipeline (#349)
2 parents 1fd6140 + 93bf003 commit 81976d1

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
trigger:
2+
branches:
3+
include:
4+
- dev
5+
- test
6+
- prod
7+
tags:
8+
include:
9+
- 20??.??.?*-rc?*
10+
- 20??.??.?*
11+
# only run for changes to Terraform files
12+
paths:
13+
include:
14+
- terraform/*
15+
16+
pr:
17+
branches:
18+
include:
19+
- "*"
20+
paths:
21+
include:
22+
- terraform/*
23+
24+
pool:
25+
vmImage: ubuntu-latest
26+
27+
stages:
28+
- template: ../pipeline/deploy.yml
29+
parameters:
30+
# path is relative to the template path (see line above)
31+
variable_file: ../sbmtd/azure-vars.yml

terraform/sbmtd/azure-vars.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
variables:
2+
TF_RESOURCE_GROUP: "sbmtd-mobility-pass-tf"
3+
TF_STORAGE_ACCOUNT: "sbmtdmobilitypasstf"
4+
TF_VAR_AGENCY_CARD: "sbmtd-mobility-pass"
5+
TF_VAR_AGENCY_RESOURCE_GROUP_PREFIX: "sbmtd-mobility-pass"
6+
TF_VAR_AGENCY_STORAGE_ACCOUNT_PREFIX: "sbmtdmobilitypass"
7+
TF_VAR_AGENCY_CARD_DATA_ETL_FILE: "mobilitypass.csv"

terraform/sbmtd/local.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SUBSCRIPTION="Mobility Pass eligibility Server"

terraform/sbmtd/local.tfbackend

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
resource_group_name="sbmtd-mobility-pass-tf"
2+
storage_account_name="sbmtdmobilitypasstf"

0 commit comments

Comments
 (0)