Merge pull request #780 from Safelite/feature/multi-region

Feature/multi region
This commit is contained in:
Frank Rua 2022-10-25 12:25:07 -06:00 committed by GitHub
commit 4c9d3cacca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 154 additions and 141 deletions

View file

@ -1,6 +1,6 @@
trigger: trigger:
branches: branches:
include: [ develop, release/* ] include: [develop, release/*]
paths: paths:
exclude: exclude:
- deployment/* - deployment/*
@ -8,7 +8,7 @@ trigger:
- "*" - "*"
pr: pr:
branches: branches:
include: [ '*' ] include: ["*"]
paths: paths:
exclude: exclude:
- deployment/* - deployment/*
@ -26,7 +26,7 @@ resources:
type: github type: github
name: Safelite/AzureDevOps name: Safelite/AzureDevOps
endpoint: Safelite endpoint: Safelite
ref: refs/tags/t5.5.19 ref: refs/tags/t5.5.31
variables: variables:
- group: Digital-Infrastructure - group: Digital-Infrastructure
@ -45,8 +45,9 @@ stages:
testResultsFile: junit.xml testResultsFile: junit.xml
summaryFileLocation: $(Build.SourcesDirectory)/coverage/cobertura-coverage.xml summaryFileLocation: $(Build.SourcesDirectory)/coverage/cobertura-coverage.xml
# Dev Build/Deploy
- ${{ else }}: - ${{ else }}:
# Dev Build/Deploy
- stage: Dev - stage: Dev
condition: eq(variables['Build.SourceBranch'], variables['dev-branch'] ) condition: eq(variables['Build.SourceBranch'], variables['dev-branch'] )
variables: variables:
@ -76,8 +77,12 @@ stages:
deployBuckets: deployBuckets:
safelite-dev-fmg-us-east-1: safelite-dev-fmg-us-east-1:
clearFolder: true clearFolder: true
deployFolder: '' deployFolder: ""
region: us-east-1 region: us-east-1
safelite-dev-fmg-us-east-2:
clearFolder: true
deployFolder: ""
region: us-east-2
appDeployVariables: appDeployVariables:
__VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__) __VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__)
__VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__) __VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__)
@ -88,7 +93,6 @@ stages:
__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__: $(__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__) __VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__: $(__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__)
cfDistributionId: $(cfDistributionId) cfDistributionId: $(cfDistributionId)
# QA Build/Deploy # QA Build/Deploy
- stage: Qa - stage: Qa
condition: eq(variables['Build.SourceBranch'], variables['qa-branch'] ) condition: eq(variables['Build.SourceBranch'], variables['qa-branch'] )
@ -119,8 +123,12 @@ stages:
deployBuckets: deployBuckets:
safelite-qa-fmg-us-east-1: safelite-qa-fmg-us-east-1:
clearFolder: true clearFolder: true
deployFolder: '' deployFolder: ""
region: us-east-1 region: us-east-1
safelite-qa-fmg-us-east-2:
clearFolder: true
deployFolder: ""
region: us-east-2
appDeployVariables: appDeployVariables:
__VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__) __VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__)
__VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__) __VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__)
@ -161,8 +169,12 @@ stages:
deployBuckets: deployBuckets:
safelite-prod-fmg-us-east-1: safelite-prod-fmg-us-east-1:
clearFolder: true clearFolder: true
deployFolder: '' deployFolder: ""
region: us-east-1 region: us-east-1
safelite-prod-fmg-us-east-2:
clearFolder: true
deployFolder: ""
region: us-east-2
appDeployVariables: appDeployVariables:
__VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__) __VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__)
__VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__) __VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__)
@ -174,5 +186,6 @@ stages:
cfDistributionId: $(cfDistributionId) cfDistributionId: $(cfDistributionId)
- template: templates/digital/auto-tag.yml@AzureDevOps - template: templates/digital/auto-tag.yml@AzureDevOps
parameters: parameters:
dependsOn: prodBuildDeployment
userName: SafeliteAzureDevops userName: SafeliteAzureDevops
userEmail: githubazuredevops@safelite.com userEmail: githubazuredevops@safelite.com

View file

@ -1,5 +1,5 @@
process.env.VUE_APP_CONSUMER_CF_DISTRO = process.env.VUE_APP_CONSUMER_CF_DISTRO =
"https://consumerapidev.safelite.com"; "https://digitalapi.dev.safelite.io";
process.env.VUE_APP_HERITAGE_FUNNEL = process.env.VUE_APP_HERITAGE_FUNNEL =
"http://localhost:38000/default.aspx"; "http://localhost:38000/default.aspx";
process.env.VUE_APP_GOOGLE_PLACES_API_KEY = process.env.VUE_APP_GOOGLE_PLACES_API_KEY =