From 93bf003e174e6e18f37be653e8c9d008e029c03a Mon Sep 17 00:00:00 2001 From: Angela Tran Date: Thu, 12 Oct 2023 16:48:42 +0000 Subject: [PATCH] feat: add SBMTD-specific pipeline definition and variables --- terraform/sbmtd/azure-pipelines.yml | 31 +++++++++++++++++++++++++++++ terraform/sbmtd/azure-vars.yml | 7 +++++++ 2 files changed, 38 insertions(+) create mode 100644 terraform/sbmtd/azure-pipelines.yml create mode 100644 terraform/sbmtd/azure-vars.yml diff --git a/terraform/sbmtd/azure-pipelines.yml b/terraform/sbmtd/azure-pipelines.yml new file mode 100644 index 00000000..f66cd8a4 --- /dev/null +++ b/terraform/sbmtd/azure-pipelines.yml @@ -0,0 +1,31 @@ +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: + # path is relative to the template path (see line above) + variable_file: ../sbmtd/azure-vars.yml diff --git a/terraform/sbmtd/azure-vars.yml b/terraform/sbmtd/azure-vars.yml new file mode 100644 index 00000000..2b19445b --- /dev/null +++ b/terraform/sbmtd/azure-vars.yml @@ -0,0 +1,7 @@ +variables: + TF_RESOURCE_GROUP: "sbmtd-mobility-pass-tf" + TF_STORAGE_ACCOUNT: "sbmtdmobilitypasstf" + TF_VAR_AGENCY_CARD: "sbmtd-mobility-pass" + TF_VAR_AGENCY_RESOURCE_GROUP_PREFIX: "sbmtd-mobility-pass" + TF_VAR_AGENCY_STORAGE_ACCOUNT_PREFIX: "sbmtdmobilitypass" + TF_VAR_AGENCY_CARD_DATA_ETL_FILE: "mobilitypass.csv"